Demo entry 6720422

ㅇㄴㅁㅎㄴㅁㅇㅇㅎ

   

Submitted by anonymous on Mar 16, 2018 at 12:55
Language: JavaScript. Code size: 518 Bytes.

'use strict';
const path = require('path')
const url = require('url')

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

let mainWindow = null;

app.on('window-all-closed', ()=>{
    if (process.platform !== 'darwin') app.quit()
})

app.on('ready', ()=>{
    mainWindow = new BrowserWindow()
    mainWindow.loadURL(url.format({
        pathname: path.join(__dirname, 'index.html'),
        protocol: 'file:',
        slashes: true
    }))
    mainWindow.on('closed', ()=>{ mainWindow = null })
})

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).