mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 07:37:19 +02:00
Add ADDITIONAL CODE block
This commit is contained in:
parent
9a18d1697e
commit
91cebb78f0
3
build.ts
3
build.ts
@ -17,6 +17,9 @@ const postProcess = (str: string): string => {
|
|||||||
// Replace "globalThis." with "var";
|
// Replace "globalThis." with "var";
|
||||||
str = str.replaceAll('globalThis.', 'var ');
|
str = str.replaceAll('globalThis.', 'var ');
|
||||||
|
|
||||||
|
// Add ADDITIONAL CODE block
|
||||||
|
str = str.replace('var DEFAULT_FLAGS', '\n/* ADDITIONAL CODE */\n\nvar DEFAULT_FLAGS');
|
||||||
|
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user