Explorar o código

add try block for settings tab

CauseFX %!s(int64=6) %!d(string=hai) anos
pai
achega
8e8bfbdbe9
Modificáronse 1 ficheiros con 9 adicións e 5 borrados
  1. 9 5
      js/cbpFWTabs.js

+ 9 - 5
js/cbpFWTabs.js

@@ -40,11 +40,15 @@
 		// current index
 		this.current = -1;
 		// show current content item
-        if(this.tabs[0].innerHTML.indexOf('#settings') >= 0){
-            this._show(5);
-        }else{
-            this._show();
-        }
+		try{
+			if(this.tabs[0].innerHTML.indexOf('#settings') >= 0){
+				this._show(5);
+			}else{
+				this._show();
+			}
+		}catch{
+			this._show();
+		}
 		// init events
 		this._initEvents();
 	};