Skip to content
This repository was archived by the owner on Apr 26, 2022. It is now read-only.

Commit a81426a

Browse files
committed
Updating map build
1 parent 15ad777 commit a81426a

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

app/main.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ autoUpdater.on('update-downloaded', function(){
3333
mainWindow.webContents.send('update-ready');
3434
});
3535

36-
try {
37-
autoUpdater.checkForUpdates();
38-
} catch (e) {}
39-
4036
// Setup menu bar
4137
var template = [{
4238
label: "Application",
@@ -134,6 +130,13 @@ function setupMainWindow() {
134130
partition: 'persist:pogolivemap'
135131
}
136132
});
133+
134+
mainWindow.webContents.once("did-frame-finish-load", function (e) {
135+
try {
136+
autoUpdater.checkForUpdates();
137+
} catch (e) {}
138+
});
139+
137140
mainWindow.loadURL('file://' + __dirname + '/login.html');
138141

139142
mainWindow.on('closed', function() {

app/map

Submodule map updated from 5f56ee1 to 9a1ef25

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": "Mike Christopher",
55
"repository": "https://github.com/mchristopher/PokemonGo-DesktopMap",
66
"license": "MIT",
7-
"version" : "0.3.2",
7+
"version" : "0.3.3",
88
"main": "main.js",
99
"scripts": {
1010
"start": "electron ."

0 commit comments

Comments
 (0)