1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

modify window API to fit the new version of electron

This commit is contained in:
Rokt33r
2016-03-09 19:42:45 +09:00
parent 0952e4a664
commit d4f8d1498d
4 changed files with 11 additions and 11 deletions

View File

@@ -79,12 +79,12 @@ var config = {
show: false,
frame: false,
resizable: false,
'zoom-factor': 1.0,
'web-preferences': {
'overlay-scrollbars': true,
'skip-taskbar': true
zoomFactor: 1.0,
webPreferences: {
blinkFeatures: 'OverlayScrollbars'
},
'standard-window': false
skipTaskbar: true,
standardWindow: false
}
if (process.platform === 'darwin') {

View File

@@ -39,7 +39,7 @@
var scriptEl=document.createElement('script')
scriptEl.setAttribute("type","text/javascript")
scriptEl.setAttribute("src", scriptUrl)
document.getElementsByTagName("head")[0].appendChild(scriptEl)
document.body.appendChild(scriptEl)
</script>
</body>
</html>

View File

@@ -6,11 +6,11 @@ const path = require('path')
var mainWindow = new BrowserWindow({
width: 1080,
height: 720,
'zoom-factor': 1.0,
'web-preferences': {
'overlay-scrollbars': true
zoomFactor: 1.0,
webPreferences: {
blinkFeatures: 'OverlayScrollbars'
},
'standard-window': false
standardWindow: false
})
const url = path.resolve(__dirname, './main.html')

View File

@@ -68,7 +68,7 @@
var scriptEl = document.createElement('script')
scriptEl.setAttribute("type","text/javascript")
scriptEl.setAttribute("src", scriptUrl)
document.getElementsByTagName("head")[0].appendChild(scriptEl)
document.body.appendChild(scriptEl)
</script>
</body>
</html>