@delta-comic/plugin 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +16 -6
- package/dist/index.js.map +1 -1
- package/dist/pack.tgz +0 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -3128,12 +3128,22 @@ var Octokit = Octokit$1.plugin(requestLog, legacyRestEndpointMethods, paginateRe
|
|
|
3128
3128
|
return e.name.endsWith(".js");
|
|
3129
3129
|
}
|
|
3130
3130
|
async load(e) {
|
|
3131
|
-
let t = await readFile(await join(await getPluginFsPath(e.pluginName), "us.js"))
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3131
|
+
let t = await readFile(await join(await getPluginFsPath(e.pluginName), "us.js"));
|
|
3132
|
+
if (t.includes(0)) {
|
|
3133
|
+
let e = new Uint8Array(t.length), r = 0;
|
|
3134
|
+
for (let n = 0; n < t.length; n++) {
|
|
3135
|
+
let i = t[n];
|
|
3136
|
+
i !== 0 && (e[r++] = i);
|
|
3137
|
+
}
|
|
3138
|
+
let i = e.subarray(0, r);
|
|
3139
|
+
var n = new Blob([i], { type: "text/javascript" });
|
|
3140
|
+
} else var n = new Blob([t], { type: "text/javascript" });
|
|
3141
|
+
let r = URL.createObjectURL(n), i = document.createElement("script");
|
|
3142
|
+
i.addEventListener("load", () => {
|
|
3143
|
+
URL.revokeObjectURL(r);
|
|
3144
|
+
}), i.addEventListener("error", (e) => {
|
|
3145
|
+
throw URL.revokeObjectURL(r), e;
|
|
3146
|
+
}), i.async = !0, i.src = r, document.body.appendChild(i);
|
|
3137
3147
|
}
|
|
3138
3148
|
}(), import_jszip_min = (/* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
3139
3149
|
(function(n) {
|