mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-23 06:01:38 -09:00
Update core.js
This commit is contained in:
parent
c944990b1e
commit
d45ba37630
10
core/core.js
10
core/core.js
@ -370,7 +370,7 @@ var main;(function(){`
|
|||||||
_status("Shrinking file...");
|
_status("Shrinking file...");
|
||||||
await wait(50);
|
await wait(50);
|
||||||
if (globalThis.process) {
|
if (globalThis.process) {
|
||||||
let _minify = require("./minify").minify;
|
let _minify = assets..minify;
|
||||||
patchedFile = await _minify(patchedFile, parser, EFIConfig);
|
patchedFile = await _minify(patchedFile, parser, EFIConfig);
|
||||||
} else {
|
} else {
|
||||||
patchedFile = await minify(patchedFile, parser, EFIConfig);
|
patchedFile = await minify(patchedFile, parser, EFIConfig);
|
||||||
@ -419,13 +419,7 @@ async function patchClient(string, parser) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (EFIConfig.doServerExtras) {
|
if (EFIConfig.doServerExtras) {
|
||||||
var efserv = null;
|
patchedFile = patchedFile.replace(`{"._|_libserverside_|_."}`, `(${assets.EFServer.toString()})()`);
|
||||||
if (!globalThis.process) {
|
|
||||||
efserv = require("./efserver").EFServer;
|
|
||||||
} else {
|
|
||||||
efserv = EFServer;
|
|
||||||
}
|
|
||||||
patchedFile = patchedFile.replace(`{"._|_libserverside_|_."}`, `(${EFServer.toString()})()`);
|
|
||||||
backgroundLog("[EFSERVER] Injecting libserverside corelib");
|
backgroundLog("[EFSERVER] Injecting libserverside corelib");
|
||||||
patchedFile = patchedFile.replace("<title>EFI", "<title>EF Server");
|
patchedFile = patchedFile.replace("<title>EFI", "<title>EF Server");
|
||||||
backgroundLog("[EFSERVER] Patching title");
|
backgroundLog("[EFSERVER] Patching title");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user