fixed and updated

This commit is contained in:
Sambo Chea 2020-02-13 17:53:53 +07:00
parent 30319c0d8c
commit 74f18a7430
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ app.on("ready", () => {
mainApp.setFullScreen(true) mainApp.setFullScreen(true)
mainApp.setTitle("DR PROFESSIONAL CLINIC"); mainApp.setTitle("DR PROFESSIONAL CLINIC");
mainApp.loadURL("http://clinic.cubetiq.online?platform=desktop"); mainApp.loadURL(process.env.DR_URL);
mainApp.on("closed", () => { mainApp.on("closed", () => {
mainApp = null; mainApp = null;

View File

@ -11,8 +11,8 @@
"postinstall": "electron-builder install-app-deps", "postinstall": "electron-builder install-app-deps",
"start": "yarn && electron ./main", "start": "yarn && electron ./main",
"pack": "electron-builder --dir", "pack": "electron-builder --dir",
"dist": "electron-builder --config ./config/electron-builder-dev.json", "dist": "DR_URL=http://clinic.cubetiq.online?platform=desktop electron-builder --config ./config/electron-builder-dev.json",
"sandbox": "electron-builder --config ./config/electron-builder-sandbox.json", "sandbox": "DR_URL=http://sandbox.clinic.cubetiq.online?platform=desktop electron-builder --config ./config/electron-builder-sandbox.json",
"builder-help": "electron-builder --help", "builder-help": "electron-builder --help",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },