Remove GC timers upon ascension #772

This commit is contained in:
Daniël van Noord committed 2021-04-29 23:09:23 +02:00
1 parent e4cdc6b85a
commit f47e1f59fe
5 files changed
+18 -4

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import { GCTimers } from '../Disp/VariablesAndData';
/**
* This is called when the user ascends
* It is called by CM.Main.Loop
*/
export default function CMRestHook() {
Object.keys(GCTimers).forEach((i) => {
GCTimers[i].parentNode.removeChild(GCTimers[i]);
delete GCTimers[i];
});
}