14.8.9 • Published 5 years ago
ready-to-show v14.8.9
ready-to-show
electron fixed event bug
const { app, BrowserWindow } = require('electron')
require('./src/main.js')(BrowserWindow) // Polyfill ready-to-show is work ❤️👌
app.on('ready', () => {
let win = new BrowserWindow({
width: 278,
height: 300,
backgroundColor: '#fff',
show: false
})
win.once('ready-to-show', () => {
win.show()
win.loadURL('https://raw.githubusercontent.com/JsusDev/home-page/master/logo/logo.png')
})
})