chore: standardize security and quality foundations
Magent CI/CD / verify (push) Failing after 9m34s
Magent CI/CD / deploy-beta (push) Skipped

This commit is contained in:
2026-09-17 20:03:47 +12:00
parent 5639dbcb83
commit f852e7c941
127 changed files with 17928 additions and 10741 deletions
+9 -9
View File
@@ -1,15 +1,15 @@
let locks = 0
let previous = ''
let locks = 0;
let previous = "";
export function lockBodyScroll() {
if (locks++ === 0) {
previous = document.body.style.overflow
document.body.style.overflow = 'hidden'
previous = document.body.style.overflow;
document.body.style.overflow = "hidden";
}
let released = false
let released = false;
return () => {
if (released) return
released = true
if (--locks === 0) document.body.style.overflow = previous
}
if (released) return;
released = true;
if (--locks === 0) document.body.style.overflow = previous;
};
}