add networks + random changes
This commit is contained in:
1 parent
bb36b2bd44
commit
5dc5a023b8
26 files changed
+1399
-1975
No files matched your search
+2
-4
@@ -88,7 +88,7 @@ function createWindow() {
|
||||
|
||||
mainWindow.loadURL(
|
||||
url.format({
|
||||
pathname: path.join(__dirname, 'dist', 'showy', 'browser', 'index.html'),
|
||||
pathname: path.join(__dirname, 'frontend_build', 'browser', 'index.html'),
|
||||
protocol: 'file:',
|
||||
slashes: true
|
||||
})
|
||||
@@ -99,14 +99,12 @@ function createWindow() {
|
||||
});
|
||||
|
||||
mainWindow.webContents.on('will-navigate', (event, url) => {
|
||||
event.preventDefault();
|
||||
console.log('hiiiiiiiii');
|
||||
event.preventDefault();;
|
||||
mainWindow.loadURL(`file://${path.join(__dirname, 'dist/showy/index.html')}`);
|
||||
});
|
||||
|
||||
mainWindow.webContents.on('did-fail-load', (event, url) => {
|
||||
// event.preventDefault();
|
||||
console.log('yoooo');
|
||||
mainWindow.loadURL(`file://${path.join(__dirname, 'dist/showy/browser/index.html')}`);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user