Add "use strict" on JS

This commit is contained in:
Ben Sturmfels 2024-05-07 11:00:14 +10:00
parent 985a08545d
commit 7b1ffebcfb
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0
2 changed files with 4 additions and 0 deletions

View file

@ -5,6 +5,8 @@
** Find a copy of GPL at https://sfconservancy.org/GPLv3 ** Find a copy of GPL at https://sfconservancy.org/GPLv3
*/ */
"use strict";
function qs (selector) { function qs (selector) {
return document.querySelector(selector); return document.querySelector(selector);
} }

View file

@ -5,6 +5,8 @@
** Find a copy of GPL at https://sfconservancy.org/GPLv3 ** Find a copy of GPL at https://sfconservancy.org/GPLv3
*/ */
"use strict";
var NEW_AMOUNT_EVENT = 'conservancy:newamount'; var NEW_AMOUNT_EVENT = 'conservancy:newamount';
var flipClass = function(elem, byeClass, hiClass) { var flipClass = function(elem, byeClass, hiClass) {