Initial clean project import

This commit is contained in:
cat-shark
2026-06-19 18:41:41 +08:00
commit a13b804c7a
1306 changed files with 220568 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import {contextBridge} from "electron";
export function exposeContext(key, value) {
if (process.contextIsolated) {
try {
contextBridge.exposeInMainWorld(key, value);
} catch (error) {
console.error(error);
}
} else {
window[key] = value;
}
}