add fail condition for already injected builds

This commit is contained in:
ZXMushroom63 2025-01-07 00:18:04 +08:00
parent c9ccf2d785
commit b92ef4f199

View File

@ -328,6 +328,9 @@ document.querySelector("#giveme").addEventListener("click", () => {
var patchedFile = string;
if (globalThis.doEaglerforge) {
if (string.includes("__eaglerforgeinjector_installation_flag__")) {
return alert("this file already has eaglerforge injected in it, you nonce.\nif you're trying to update, you need a vanilla file.");
}
patchedFile = await processClasses(patchedFile);
} else if (globalThis.doShronk) {
patchedFile = await shronk(patchedFile);