mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-16 01:07:22 +08:00
Opt: AP preserve until reset
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
/**
|
||||
* @module preload
|
||||
*/
|
||||
import {contextBridge} from 'electron';
|
||||
|
||||
export {sha256sum} from './nodeCrypto';
|
||||
export {versions} from './versions';
|
||||
export {ipcRendererSend, ipcRendererOn} from './electronApi';
|
||||
export {getAlasConfig, checkIsNeedInstall, getAlasConfigDirFiles} from './alasConfig';
|
||||
export {copyFilesToDir} from '@common/utils/copyFilesToDir';
|
||||
export {modifyConfigYaml} from './modifyConfigYaml';
|
||||
const apiKey = 'electron';
|
||||
/**
|
||||
* @see https://github.com/electron/electron/issues/21437#issuecomment-573522360
|
||||
*/
|
||||
const api: ElectronApi = {
|
||||
versions: process.versions,
|
||||
};
|
||||
|
||||
/**
|
||||
* The "Main World" is the JavaScript context that your main renderer code runs in.
|
||||
* By default, the page you load in your renderer executes code in this world.
|
||||
*
|
||||
* @see https://www.electronjs.org/docs/api/context-bridge
|
||||
*/
|
||||
contextBridge.exposeInMainWorld(apiKey, api);
|
||||
|
||||
Reference in New Issue
Block a user