mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-23 06:01:38 -09:00
Update core.js
Added magnify edgecase
This commit is contained in:
parent
944688f20f
commit
46bd711184
10
core/core.js
10
core/core.js
@ -368,8 +368,12 @@ var main;(function(){`
|
|||||||
if (EFIConfig.doMinify) {
|
if (EFIConfig.doMinify) {
|
||||||
_status("Shrinking file...");
|
_status("Shrinking file...");
|
||||||
await wait(50);
|
await wait(50);
|
||||||
|
if (globalThis.process) {
|
||||||
patchedFile = await minify(patchedFile, parser, EFIConfig);
|
let _minify = require("./minify").minify;
|
||||||
|
patchedFile = await _minify(patchedFile, parser, EFIConfig);
|
||||||
|
} else {
|
||||||
|
patchedFile = await minify(patchedFile, parser, EFIConfig);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -436,4 +440,4 @@ if (globalThis.process) {
|
|||||||
patchClient: patchClient,
|
patchClient: patchClient,
|
||||||
conf: EFIConfig
|
conf: EFIConfig
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user