mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Wegame version fixes
This commit is contained in:
parent
62b6504917
commit
75b5f68ade
@ -1,5 +1,5 @@
|
|||||||
const railsdk = require("./wegame_sdk/railsdk.js");
|
const railsdk = require("./wegame_sdk/railsdk.js");
|
||||||
const { dialog, remote } = require("electron");
|
const { dialog, app } = require("electron");
|
||||||
|
|
||||||
function init(isDev) {
|
function init(isDev) {
|
||||||
console.log("Step 1: wegame: init");
|
console.log("Step 1: wegame: init");
|
||||||
@ -39,7 +39,7 @@ function init(isDev) {
|
|||||||
event.state === railsdk.RailSystemState.kSystemStatePlatformExit ||
|
event.state === railsdk.RailSystemState.kSystemStatePlatformExit ||
|
||||||
event.state === railsdk.RailSystemState.kSystemStateGameExitByAntiAddiction
|
event.state === railsdk.RailSystemState.kSystemStateGameExitByAntiAddiction
|
||||||
) {
|
) {
|
||||||
remote.app.exit();
|
app.exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user