Add isTest to settings and ability to redirect to test env. Add rome/imex specific builds.
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
import { contextBridge } from "electron";
|
||||
import { electronAPI } from "@electron-toolkit/preload";
|
||||
import "electron-log/preload";
|
||||
import store from "../main/store/store";
|
||||
|
||||
// Custom APIs for renderer
|
||||
const api = {};
|
||||
interface Api {
|
||||
isTest: () => boolean;
|
||||
}
|
||||
|
||||
const api: Api = {
|
||||
isTest: (): boolean => store.get("app.isTest") || false,
|
||||
};
|
||||
|
||||
// Use `contextBridge` APIs to expose Electron APIs to
|
||||
// renderer only if context isolation is enabled, otherwise
|
||||
|
||||
Reference in New Issue
Block a user