diff options
author | Minteck <nekostarfan@gmail.com> | 2021-08-05 17:21:23 +0200 |
---|---|---|
committer | Minteck <nekostarfan@gmail.com> | 2021-08-05 17:21:23 +0200 |
commit | d5a620cf09b835db2bccd99556525c90b458719f (patch) | |
tree | 1507f96be0413bd20026878890b0c1ad438e51d2 /crash/wrapper.js | |
parent | 44210691ee8444509ac466a362337af77f2bcd49 (diff) | |
download | kartik-client-d5a620cf09b835db2bccd99556525c90b458719f.tar.gz kartik-client-d5a620cf09b835db2bccd99556525c90b458719f.tar.bz2 kartik-client-d5a620cf09b835db2bccd99556525c90b458719f.zip |
i18n for 21.08
Diffstat (limited to 'crash/wrapper.js')
-rw-r--r-- | crash/wrapper.js | 76 |
1 files changed, 38 insertions, 38 deletions
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 |