Skip to content

Commit

Permalink
dev now calls https://localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
jurelik committed Oct 15, 2021
1 parent ee72de6 commit 5be09cf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"homepage": "https://github.com/jurelik/ohm#readme",
"devDependencies": {
"electron": "^14.0.0",
"electron": "^15.2.0",
"electron-packager": "^15.4.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function App() {
ipcRenderer.once('login', async (e, data) => {
this.OHM_SERVER = data.OHM_SERVER;
this.USER_DATA_PATH = data.userDataPath;
this.URL = process.env.NODE_ENV === 'development' ? 'http://localhost:3000' : `https://${this.OHM_SERVER}${process.env.NODE_ENV === 'test' ? '/test' : ''}`;
this.URL = process.env.NODE_ENV === 'development' ? 'https://localhost' : `https://${this.OHM_SERVER}${process.env.NODE_ENV === 'test' ? '/test' : ''}`;

//Create settingsStore
this.settingsStore = new Store({ name: 'settings' });
Expand Down

0 comments on commit 5be09cf

Please sign in to comment.