summarylogtreecommitdiffstats
path: root/inject-main.js
diff options
context:
space:
mode:
authormsojocs2023-01-18 20:23:30 +0800
committermsojocs2023-01-18 20:23:30 +0800
commit2edaf4c13fa0d76d365f78379e94834c71becfda (patch)
treea744fb4d1f9815b3a1386e0df8e138598542afec /inject-main.js
parent02f8a7c1bd69c90ade2a4e747f04b76ad77cd564 (diff)
downloadaur-hikari-field-client-bin.tar.gz
update: hf to v1.1.4
Diffstat (limited to 'inject-main.js')
-rw-r--r--inject-main.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/inject-main.js b/inject-main.js
new file mode 100644
index 000000000000..4650d680ece7
--- /dev/null
+++ b/inject-main.js
@@ -0,0 +1,13 @@
+const { app } = require("electron");
+const pkgHack = {
+ idx: 0,
+ data: [true, true, true, true, true, true],
+};
+Object.defineProperty(app, "isPackaged", {
+ get() {
+ let ret = pkgHack.data[pkgHack.idx++];
+ if (ret === undefined) ret = true;
+ console.log("get isPackaged", ret);
+ return true;
+ },
+});