Socket
Socket
Sign inDemoInstall

ready-to-show

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ready-to-show

electron fixed event bug


Version published
Weekly downloads
4
Maintainers
1
Install size
1.68 kB
Created
Weekly downloads
 

Readme

Source

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')
  })

})

Keywords

FAQs

Last updated on 26 Jul 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc