mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-22 21:51:17 -09:00
add fail condition for already injected builds
This commit is contained in:
parent
c9ccf2d785
commit
b92ef4f199
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user