Remove unnecessary code

This commit is contained in:
Bruno Bernardino 2022-07-21 07:18:03 +01:00
parent 45d4f51163
commit 3c5917dd99
No known key found for this signature in database
GPG Key ID: D1B0A69ADD114ECE
3 changed files with 1 additions and 13 deletions

View File

@ -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() {

View File

@ -125,8 +125,6 @@ function createWindow(path: string = "") {
autoHideMenuBar: true,
webPreferences: {
devTools: debug,
nodeIntegration: true,
contextIsolation: false,
},
minWidth,
minHeight,

View File

@ -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 {}