Przeglądaj źródła

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

leet1994 5 lat temu
rodzic
commit
73a64e4611
1 zmienionych plików z 1 dodań i 1 usunięć
  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);