diff options
author | Andrew Dolgov <[email protected]> | 2021-02-18 21:51:18 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-18 21:51:18 +0300 |
commit | 70fa4230268a422d0b7eef1ea223ca5cc1c14646 (patch) | |
tree | a4dd25afda189691afbdeecc2f32c4ab09969e5e /js/utility.js | |
parent | 0b6a71f8eac719070747f22273f4bc7dee0526b6 (diff) |
initial for RIP prototype/scriptaculous
Diffstat (limited to 'js/utility.js')
-rw-r--r-- | js/utility.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/utility.js b/js/utility.js index eef1c6b61..a7530a97f 100644 --- a/js/utility.js +++ b/js/utility.js @@ -2,7 +2,7 @@ /* TODO: this should probably be something like night_mode.js since it does nothing specific to utility scripts */ -Event.observe(window, "load", function() { +window.addEventListener("load", function() { const UtilityJS = { apply_night_mode: function (is_night, link) { console.log("night mode changed to", is_night); |