Fix reset resetting even when not nessesary

This commit is contained in:
Otard95 2021-06-03 17:51:51 +02:00
parent 86cbae594b
commit 55150031ff

View file

@ -144,6 +144,7 @@ function render() {
export function reset(immediate = false) {
if (!ctx.resetTimeOut) return;
delete ctx.resetTimeOut;
clearTimeout(ctx.resetTimeOut);
const body = $(document.body);