Get PointerServer's port from the app

This commit is contained in:
redphx
2024-06-09 11:41:00 +07:00
parent 0d59ab2ee2
commit a3a7a57b51
6 changed files with 17 additions and 8 deletions

View File

@@ -314,7 +314,10 @@ function main() {
}
// Start PointerProviderServer
(getPref(PrefKey.MKB_ENABLED)) && AppInterface && AppInterface.startPointerServer();
if (getPref(PrefKey.MKB_ENABLED) && AppInterface) {
STATES.pointerServerPort = AppInterface.startPointerServer() || 9269;
BxLogger.info('startPointerServer', 'Port', STATES.pointerServerPort.toString());
}
}
main();