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 30, 2024
1 parent 1e711f4 commit 6070862
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions src/electron/frontend/core/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import paths from "../../../paths.config.json" assert { type: "json" };

import supportedInterfaces from "../../../supported_interfaces.json" assert { type: "json" };

export {
isTestEnvironment
}
export { isTestEnvironment };

export const joinPath = (...args) => (path ? path.join(...args) : args.filter((str) => str).join("/"));

Expand Down
2 changes: 0 additions & 2 deletions src/electron/frontend/utils/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export const isTestEnvironment = globalThis?.process?.env?.VITEST;
const userAgent = navigator.userAgent.toLowerCase();
export const isElectron = userAgent.indexOf(" electron/") > -1;


const hasNodeAccess = isElectron || isTestEnvironment;

export const electron = globalThis.electron ?? {}; // ipcRenderer, remote, shell, etc.
Expand Down Expand Up @@ -50,5 +49,4 @@ if (isElectron) {
electron.ipcRenderer.on(`update-complete`, (_, ...args) => console.log(`[Update]:`, ...args));

electron.ipcRenderer.on(`update-error`, (_, ...args) => console.log(`[Update]:`, ...args));

}

0 comments on commit 6070862

Please sign in to comment.