extra window now works in browsers too

This commit is contained in:
zadam
2020-04-27 22:29:39 +02:00
parent 907cdd8fcb
commit ffbfccb701
4 changed files with 8 additions and 8 deletions

View File

@@ -108,9 +108,9 @@ class AppContext extends Component {
ipcRenderer.send('create-extra-window', {notePath});
}
else {
const url = 'http://127.0.0.1:37740/#' + notePath;
const url = window.location.protocol + '//' + window.location.host + window.location.pathname + '?extra=1#' + notePath;
window.open(url);
window.open(url, '', 'width=1000,height=800');
}
}
}