فهرست منبع

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

leet1994 5 سال پیش
والد
کامیت
73a64e4611
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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);