ADD: 模块激活流程
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
const Renderer =
|
||||
(window.require && window.require('electron')) || window.electron || {}
|
||||
declare global {
|
||||
interface Window {
|
||||
electron?: any;
|
||||
}
|
||||
}
|
||||
|
||||
const Renderer = (window.require && window.require('electron')) || window.electron || {};
|
||||
|
||||
/**
|
||||
* ipc
|
||||
@@ -21,11 +26,14 @@ const Renderer =
|
||||
/**
|
||||
* ipc
|
||||
*/
|
||||
const ipc = Renderer.ipcRenderer || undefined
|
||||
const ipc = Renderer.ipcRenderer || undefined;
|
||||
|
||||
/**
|
||||
* 是否为EE环境
|
||||
*/
|
||||
const isEE = ipc ? true : false
|
||||
const isEE = ipc ? true : false;
|
||||
|
||||
export {
|
||||
Renderer, ipc, isEE
|
||||
};
|
||||
|
||||
export { Renderer, ipc, isEE }
|
||||
|
||||
Reference in New Issue
Block a user