diff --git a/dist/autoloader.js b/dist/autoloader.js index 205c0c9..a0b36dc 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Mon Dec 17 2018 16:42:45 GMT+0100 (CET)*/ +/*Generated on:Mon Dec 17 2018 17:10:04 GMT+0100 (CET)*/ var AutomaticDispose_Branch = "master"; var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/"; var da_lss_adis_time = new Date().getTime(); diff --git a/dist/autoloaderV2.js b/dist/autoloaderV2.js index 9929ab8..390c5f4 100644 --- a/dist/autoloaderV2.js +++ b/dist/autoloaderV2.js @@ -1,4 +1,4 @@ -/*Generated on:Mon Dec 17 2018 16:42:45 GMT+0100 (CET)*/ +/*Generated on:Mon Dec 17 2018 17:10:04 GMT+0100 (CET)*/ /* * Dexie.js - a minimalistic wrapper for IndexedDB * =============================================== @@ -19085,7 +19085,9 @@ class AutomaticDispose { } setTimeout(function () { var $div = $("#mission-form > div:nth-child(7) > a"); - if ($div.length) { + var isShow = $div.is(':visible'); + console.log ($div, isShow); + if ($div.length && isShow) { var observer = new MutationObserver(function (mutations) { mutations.forEach(function (mutation) { if (mutation.attributeName === "style") { diff --git a/src/autoloaderV2.js b/src/autoloaderV2.js index 4847366..328cfd7 100644 --- a/src/autoloaderV2.js +++ b/src/autoloaderV2.js @@ -1425,7 +1425,9 @@ class AutomaticDispose { } setTimeout(function () { var $div = $("#mission-form > div:nth-child(7) > a"); - if ($div.length) { + var isShow = $div.is(':visible'); + console.log ($div, isShow); + if ($div.length && isShow) { var observer = new MutationObserver(function (mutations) { mutations.forEach(function (mutation) { if (mutation.attributeName === "style") {