We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e405160 commit 1ca24d1Copy full SHA for 1ca24d1
main.js
@@ -1,4 +1,4 @@
1
-const { app, BrowserWindow } = require('electron')
+const { app, BrowserWindow, shell } = require('electron')
2
3
// setup auto updates
4
require('update-electron-app')()
@@ -9,10 +9,24 @@ function createWindow () {
9
height: 900,
10
webPreferences: {
11
devTools: true,
12
+ contextIsolation: false,
13
}
14
})
15
16
win.loadURL("https://bitclout.com");
17
+
18
+ win.on('page-title-updated', (evt) => {
19
+ evt.preventDefault();
20
+ });
21
22
+ win.webContents.on('new-window', function(e, url) {
23
+ if (url.startsWith('https://identity.bitclout.com')) {
24
+ return;
25
+ }
26
27
+ e.preventDefault();
28
+ shell.openExternal(url);
29
30
31
32
app.whenReady().then(() => {
0 commit comments