From b623844316953eeef27500d7a8e5bd7000ca8713 Mon Sep 17 00:00:00 2001 From: Acamaeda Date: Sun, 6 Dec 2020 23:01:24 -0500 Subject: [PATCH] Fixed error with jumping to the main tab --- js/utils.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/utils.js b/js/utils.js index 85c308c..b22331c 100644 --- a/js/utils.js +++ b/js/utils.js @@ -633,8 +633,7 @@ function inChallenge(layer, id){ var onTreeTab = true function showTab(name) { if (LAYERS.includes(name) && !layerunlocked(name)) return - if (player.tab === name && player.subtabs[name] && player.subtabs[name].mainTabs) { - console.log("momo") + if (player.tab === name && isPlainObject(tmp[name].tabFormat)) { player.subtabs[name].mainTabs = Object.keys(layers[name].tabFormat)[0] } var toTreeTab = name == "none" @@ -813,7 +812,7 @@ var activePopups = []; var popupID = 0; // Function to show popups -function addPopup(type="none",text="This is a test popup.",title="",timer=3) { +function addPopup(type="none",text="This is a test popup.",title="",timer=3, color="") { switch(type) { case "achievement": popupTitle = "Achievement Unlocked!";