Explorar el Código

[minor] fixed that tabs were not added correctly to Tab Editor menu if settings page was not opened during refresh

leet1994 hace 5 años
padre
commit
73a64e4611
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      api/plugins/js/bookmark.js

+ 1 - 1
api/plugins/js/bookmark.js

@@ -13,7 +13,7 @@ $(document).on('click', '#BOOKMARK-settings-button', function() {
 
 
 bookmarkLaunch()
 bookmarkLaunch()
 function bookmarkLaunch(){
 function bookmarkLaunch(){
-    if(typeof activeInfo == 'undefined'){
+    if((typeof activeInfo == 'undefined') || ($('#settings-main-tab-editor .nav-tabs').length == 0)){
         setTimeout(function () {
         setTimeout(function () {
             bookmarkLaunch();
             bookmarkLaunch();
         }, 1000);
         }, 1000);