mirror of
https://github.com/docker/docs.git
synced 2026-11-05 00:14:17 +03:00
Window options to allow loading local files.
This commit is contained in:
12
index.js
12
index.js
@@ -127,7 +127,16 @@ app.on('ready', function() {
|
||||
}
|
||||
|
||||
// Create the browser window.
|
||||
mainWindow = new BrowserWindow({width: 800, height: 578, frame:false, resizable: false});
|
||||
var windowOptions = {
|
||||
width: 800,
|
||||
height: 578,
|
||||
frame: false,
|
||||
resizable: false,
|
||||
'web-preferences': {
|
||||
'web-security': false
|
||||
}
|
||||
};
|
||||
mainWindow = new BrowserWindow(windowOptions);
|
||||
|
||||
// and load the index.html of the app.
|
||||
mainWindow.loadUrl(url);
|
||||
@@ -135,4 +144,3 @@ app.on('ready', function() {
|
||||
mainWindow.focus();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user