Track bundled vendor runtime sources
This commit is contained in:
16
vendor/aigcpanel/electron/mapi/updater/render.ts
vendored
Normal file
16
vendor/aigcpanel/electron/mapi/updater/render.ts
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import updaterIndex from "./index";
|
||||
import { ipcRenderer } from "electron";
|
||||
|
||||
const getCheckAtLaunch = async (): Promise<"yes" | "no"> => {
|
||||
return ipcRenderer.invoke("updater:getCheckAtLaunch");
|
||||
};
|
||||
|
||||
const setCheckAtLaunch = async (value: "yes" | "no"): Promise<void> => {
|
||||
return ipcRenderer.invoke("updater:setCheckAtLaunch", value);
|
||||
};
|
||||
|
||||
export default {
|
||||
...updaterIndex,
|
||||
getCheckAtLaunch,
|
||||
setCheckAtLaunch,
|
||||
};
|
||||
Reference in New Issue
Block a user