Add ADDITIONAL CODE block

This commit is contained in:
redphx 2024-04-25 17:33:33 +07:00
parent 9a18d1697e
commit 91cebb78f0

View File

@ -17,6 +17,9 @@ const postProcess = (str: string): string => {
// Replace "globalThis." with "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;
}