This commit is contained in:
2019-02-15 17:40:00 +01:00
parent 7540e20591
commit ae716195b7
3 changed files with 8 additions and 6 deletions

View File

@@ -2480,9 +2480,10 @@
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
console.log('DEBUG::', MissionID, $div, isShow);
if ($div.length && isShow) {
console.log('DEBUG::', MissionID, 'Start Observer');
var observer = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
//console.log(mutation)
console.log('DEBUG::','mutation', mutation)
if (mutation.attributeName === "style") {
if ($(mutation.target).css('display') == 'none') {
if (typeof ppppp != 'undefined') {
@@ -2509,7 +2510,7 @@
characterDataOldValue: true
});
})
$div.click();
$($div[0]).click();
} else {
window.console.log('DEBUG:::', 'Start AutomaticDispose()')
window.AutomaticDisposeCall = new AutomaticDispose();