Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- const _ipcMain = require('electron').ipcMain;
- var app = require('app');
- var BrowserWindow = require('browser-window');
- var mainWindow = null;
- app.on('ready', function() {
- mainWindow = new BrowserWindow({
- width: 396,
- height: 445,
- titleBarStyle: 'hidden',
- resizable: false
- });
- mainWindow.loadURL('file://' + __dirname + '/app/index.html');
- var session = mainWindow.webContents.session;
- });
- app.on('window-all-closed', app.quit);
- _ipcMain.on('resize', function(event, width, height) {
- mainWindow.setSize(width, height);
- mainWindow.center();
- mainWindow
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement