Tags
Asked 11 days ago
10 Jan 2018
Views 41
angeo

angeo posted

How to create splash screen on Electron Js application ?

How to create splash screen on Electron Js application before mainWindow start to run ?

my concept is load loading bar or My Application logo untill mainWindow Ready
here is the example code what i burning there



const {app, BrowserWindow} = require('electron');

function createWindow () {
    // Create the browser window.
    win = new BrowserWindow({width: 800, height: 600});

    // Emitted when the window is closed.
    win.on('closed', () => {
        console.log('closed!');
        win = null
    })
 

    // and load the url of the app.
    win.loadURL('https://www.google.com');
}

app.on('ready', createWindow);
Post Answer