Parcourir la source

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

leet1994 il y a 5 ans
Parent
commit
73a64e4611
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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()
 function bookmarkLaunch(){
-    if(typeof activeInfo == 'undefined'){
+    if((typeof activeInfo == 'undefined') || ($('#settings-main-tab-editor .nav-tabs').length == 0)){
         setTimeout(function () {
             bookmarkLaunch();
         }, 1000);