mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
29 lines
594 B
JavaScript
29 lines
594 B
JavaScript
const electron = require('electron')
|
|
const BrowserWindow = electron.BrowserWindow
|
|
const path = require('path')
|
|
|
|
var finderWindow = new BrowserWindow({
|
|
width: 640,
|
|
height: 400,
|
|
show: false,
|
|
frame: false,
|
|
resizable: false,
|
|
'zoom-factor': 1.0,
|
|
'always-on-top': true,
|
|
'web-preferences': {
|
|
'overlay-scrollbars': true,
|
|
'skip-taskbar': true
|
|
},
|
|
'standard-window': false
|
|
})
|
|
|
|
var url = path.resolve(__dirname, '../browser/finder/index.html')
|
|
|
|
finderWindow.loadURL('file://' + url)
|
|
|
|
finderWindow.on('blur', function () {
|
|
finderWindow.hide()
|
|
})
|
|
|
|
module.exports = finderWindow
|