From d5a620cf09b835db2bccd99556525c90b458719f Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 5 Aug 2021 17:21:23 +0200 Subject: i18n for 21.08 --- crash/wrapper.js | 76 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 38 insertions(+), 38 deletions(-) (limited to 'crash/wrapper.js') diff --git a/crash/wrapper.js b/crash/wrapper.js index 16ecfd9..4c291bd 100644 --- a/crash/wrapper.js +++ b/crash/wrapper.js @@ -1,39 +1,39 @@ -const { app, BrowserWindow } = require('electron') - -lp = "en"; - -function createWindow () { - const win = new BrowserWindow({ - width: 800, - height: 375, - resizeable: false, - resizable: false, - maximizable: false, - bgColor: "#ffffff", - title: "Kartik", - webPreferences: { - nodeIntegration: true, - contextIsolation: false, - enableRemoteModule: true, - webviewTag: true - } - }) - - win.lp = lp; - win.loadFile('crash.html') - win.setMenu(null); -} - -app.whenReady().then(createWindow) - -app.on('window-all-closed', () => { - if (process.platform !== 'darwin') { - app.quit() - } -}) - -app.on('activate', () => { - if (BrowserWindow.getAllWindows().length === 0) { - createWindow() - } +const { app, BrowserWindow } = require('electron') + +lp = "en"; + +function createWindow () { + const win = new BrowserWindow({ + width: 800, + height: 375, + resizeable: false, + resizable: false, + maximizable: false, + bgColor: "#ffffff", + title: "Kartik", + webPreferences: { + nodeIntegration: true, + contextIsolation: false, + enableRemoteModule: true, + webviewTag: true + } + }) + + win.lp = lp; + win.loadFile('crash.html') + win.setMenu(null); +} + +app.whenReady().then(createWindow) + +app.on('window-all-closed', () => { + if (process.platform !== 'darwin') { + app.quit() + } +}) + +app.on('activate', () => { + if (BrowserWindow.getAllWindows().length === 0) { + createWindow() + } }) \ No newline at end of file -- cgit