From 3d17bf1f76b96356f99a0159052c79475008623c Mon Sep 17 00:00:00 2001 From: lllllllllwith10ls <38187754+lllllllllwith10ls@users.noreply.github.com> Date: Sat, 30 Sep 2023 15:18:49 -0500 Subject: [PATCH] Fix try --- mods/chem.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/chem.js b/mods/chem.js index 22051590..ca91df4b 100644 --- a/mods/chem.js +++ b/mods/chem.js @@ -2,7 +2,7 @@ function whenAvailable(name, callback) { var interval = 10; // ms window.setTimeout(function() { if (window[name]) { - callback(window[name]); + callback(); } else { whenAvailable(name, callback); } @@ -10,7 +10,7 @@ function whenAvailable(name, callback) { } var runAfterAutogenMod = "mods/runAfterAutogen and onload restructure.js"; if(enabledMods.includes(runAfterAutogenMod)){ -whenAvailable("runAfterAutogen", function(t) { +whenAvailable("runAfterAutogen", function() { elements.fluorine = { color: "#FFFFBF",