aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app/browser.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/app/browser.js b/src/app/browser.js
index 3631550..6d10bfb 100644
--- a/src/app/browser.js
+++ b/src/app/browser.js
@@ -58,12 +58,24 @@ var Browser = {
},
setbutton: (mod, string) => {
mod = normalize(mod);
+ console.log(mod)
if (document.getElementById(mod)) {
let elems = document.querySelectorAll(`#${mod}`);
for (let i = 0; i < elems.length; i++) {
elems[i].querySelector(".text button").innerHTML = string;
}
+ } else {
+ setTimeout(() => {
+ for (let i = 0; i < modsobj.all.length; i++) {
+ let modname = normalize(modsobj.all[i].Name);
+ if (mod.includes(modname)) {
+ if (document.getElementById(modname)) {
+ Browser.setbutton(modname, string);
+ }
+ }
+ }
+ }, 1501)
}
}
}; Browser.toggle()