Remove unnecessary code
This commit is contained in:
parent
45d4f51163
commit
3c5917dd99
|
@ -18,7 +18,6 @@ export function AutoLock<B extends Constructor<Object>>(baseClass: B) {
|
|||
document.addEventListener("keydown", () => this._startTimer());
|
||||
document.addEventListener("pause", () => this._pause());
|
||||
document.addEventListener("resume", () => this._resume());
|
||||
document.addEventListener("lock-app", () => this._doLock());
|
||||
}
|
||||
|
||||
_cancelAutoLock() {
|
||||
|
|
|
@ -125,8 +125,6 @@ function createWindow(path: string = "") {
|
|||
autoHideMenuBar: true,
|
||||
webPreferences: {
|
||||
devTools: debug,
|
||||
nodeIntegration: true,
|
||||
contextIsolation: false,
|
||||
},
|
||||
minWidth,
|
||||
minHeight,
|
||||
|
|
|
@ -1,13 +1,4 @@
|
|||
import { ipcRenderer } from "electron";
|
||||
import { Platform } from "@padloc/core/src/platform";
|
||||
import { WebPlatform } from "@padloc/app/src/lib/platform";
|
||||
|
||||
export class ElectronPlatform extends WebPlatform implements Platform {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
ipcRenderer.on("electron-lock-app", () => {
|
||||
window.document.dispatchEvent(new CustomEvent("lock-app"));
|
||||
});
|
||||
}
|
||||
}
|
||||
export class ElectronPlatform extends WebPlatform implements Platform {}
|
||||
|
|
Loading…
Reference in New Issue