Fix app not loading if user didnt select an option to load which version of MS-Office to load
This commit is contained in:
Agampreet Singh
2021-11-05 21:27:25 +05:30
parent 0fdb51f0dc
commit e41073386b
2 changed files with 6 additions and 5 deletions

View File

@@ -153,10 +153,11 @@ function createWindow() {
},
});
win.loadURL(`${store.get("enterprise-or-normal")}`, {
userAgent:
"Mozilla/5.0 (x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36",
});
if (store.get("enterprise-or-normal") === undefined) {
win.loadURL("https://agam778.github.io/MS-Office-Electron/loading");
} else {
win.loadURL(store.get("enterprise-or-normal"));
}
}
app.whenReady().then(createWindow);

View File

@@ -1,6 +1,6 @@
{
"name": "ms-office-electron",
"version": "0.3.5",
"version": "0.3.6",
"description": "An Unofficial Microsoft Office Online Desktop Client. Free of Cost.",
"main": "main.js",
"repository": {