Fully remove formatCode function (trim on script save)

This commit is contained in:
omuretsu
2023-05-03 07:21:23 -04:00
parent ad5a1c4bac
commit 3c996a47ea
3 changed files with 3 additions and 14 deletions

View File

@@ -593,9 +593,7 @@ export function Root(props: IProps): React.ReactElement {
const openScript = openScripts[index];
const serverData = getServerCode(index);
if (serverData === null) return " *";
// For scripts, server code is stored with its starting & trailing whitespace removed
const code = openScript.isTxt ? openScript.code : Script.formatCode(openScript.code);
return serverData !== code ? " *" : "";
return serverData !== openScript.code ? " *" : "";
}
function getServerCode(index: number): string | null {
const openScript = openScripts[index];