Skip to content

Commit

Permalink
KKERTI remove unused deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kkerti committed Nov 10, 2023
1 parent 49e20f9 commit 8b873b3
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions src/electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ import {
desktopAutomationPluginStart,
desktopAutomationPluginStop,
} from "./addon/desktopAutomation";
//import { Deeplink } from "electron-deeplink";
import polka from "polka";
import sirv from "sirv";

Expand Down Expand Up @@ -162,7 +161,7 @@ if (!gotTheLock) {
mainWindow.restore();
mainWindow.focus();
}
handleDeeplinkReturnData(commandLine);
handleDeeplinkReturnData(commandLine.toString());
}
}
);
Expand Down Expand Up @@ -347,17 +346,6 @@ function createWindow() {
});
}

// isDev is only true when we are in development mode. nightly builds are not development as they are packaged and path resolution is different
// isDev needs to know if app is packaged
// const isDev = buildVariables.BUILD_ENV == "development" ? true : false;
// const deeplink = new Deeplink({
// app,
// mainWindow,
// protocol: "grid-editor",
// isDev,
// debugLogging: true,
// });

// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
Expand Down Expand Up @@ -455,20 +443,6 @@ ipcMain.handle("stopPlugin", async (event, arg) => {
return "ok";
});

// deeplink.on("received", (data) => {
// if (data.startsWith("grid-editor")) {
// const url = new URL(data);
// if (url.searchParams.get("credential") !== null) {
// const credential = url.searchParams.get("credential");
// mainWindow.webContents.send("onExternalAuthResponse", credential);
// }
// if (url.searchParams.get("config-link") !== null) {
// const configLink = url.searchParams.get("config-link");
// mainWindow.webContents.send("onExternalConfigLinkResponse", configLink);
// }
// }
// });

ipcMain.handle("clipboardWriteText", async (event, arg) => {
console.log(arg.text);
clipboard.writeText(arg.text);
Expand Down

0 comments on commit 8b873b3

Please sign in to comment.