mirror of
https://github.com/HugoAura/Seewo-HugoAura.git
synced 2026-06-20 23:14:28 +08:00
1. [/] 为 Revive 元素添加了自定义事件触发, 从而正确处理 Remount 发生时的情况 2. [/] 为 Input 元素添加了正确的 onSubmit 事件处理
41 lines
752 B
JavaScript
41 lines
752 B
JavaScript
// @ts-check
|
|
|
|
/**
|
|
* @param {Electron} electron
|
|
*/
|
|
const createWsWindow = (electron) => {
|
|
const path = require("path");
|
|
const { BrowserWindow } = electron;
|
|
const window = new BrowserWindow({
|
|
width: 0,
|
|
height: 0,
|
|
frame: false,
|
|
skipTaskbar: true,
|
|
transparent: true,
|
|
alwaysOnTop: false,
|
|
webPreferences: {
|
|
nodeIntegration: true,
|
|
contextIsolation: false,
|
|
devTools: true,
|
|
},
|
|
});
|
|
|
|
window.setIgnoreMouseEvents(true);
|
|
window.minimize();
|
|
window.loadFile(
|
|
path.join(
|
|
__dirname,
|
|
"..",
|
|
"ui",
|
|
"pages",
|
|
"windows",
|
|
"auraWsKeepAlive",
|
|
"index.html"
|
|
)
|
|
);
|
|
|
|
return window;
|
|
};
|
|
|
|
module.exports = { createWsWindow };
|