fix RAM calculation on a different server (#612)

This commit is contained in:
Aleksei Bezrodnov
2023-06-13 23:19:42 +02:00
committed by GitHub
parent 192c1947a6
commit 12b5c00d14
2 changed files with 11 additions and 14 deletions
+4 -1
View File
@@ -137,7 +137,10 @@ function Root(props: IProps): React.ReactElement {
const debouncedCodeParsing = debounce((newCode: string) => {
infLoop(newCode);
updateRAM(!currentScript || currentScript.isTxt ? null : newCode);
updateRAM(
!currentScript || currentScript.isTxt ? null : newCode,
currentScript && GetServer(currentScript.hostname),
);
finishUpdatingRAM();
}, 300);