Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 29, 2024
1 parent ed3d7be commit 9c95fb5
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/electron/frontend/utils/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,15 @@ export const crypto = require("crypto");
export const path = require("path");

// Remote Electron Modules
export const remote = isElectron ? require("@electron/remote") : {}
export const remote = isElectron ? require("@electron/remote") : {};
export const app = remote.app;

// Electron Information
export const port = electron.ipcRenderer ? electron.ipcRenderer.sendSync("get-port") : 4242
export const SERVER_FILE_PATH = electron.ipcRenderer ? electron.ipcRenderer.sendSync("get-server-file-path") : ""

export const port = electron.ipcRenderer ? electron.ipcRenderer.sendSync("get-port") : 4242;
export const SERVER_FILE_PATH = electron.ipcRenderer ? electron.ipcRenderer.sendSync("get-server-file-path") : "";

// Link the renderer to the main process
if (isElectron) {

electron.ipcRenderer.on("fileOpened", (info, filepath) => {
updateURLParams({ file: filepath });
const dashboard = document.querySelector("nwb-dashboard");
Expand All @@ -36,5 +34,4 @@ if (isElectron) {
);

console.log("User OS:", os.type(), os.platform(), "version:", os.release());

}
}

0 comments on commit 9c95fb5

Please sign in to comment.