1
0

Rename to connection_result_observer

This commit is contained in:
clerie 2020-09-16 14:19:31 +02:00
parent d4d97d899d
commit 83feb9af10

View File

@ -32,7 +32,7 @@ function bahnParseTrainName(dirty_train_name) {
return dirty_train_name; return dirty_train_name;
} }
var observer = new MutationObserver((mutations, observer) => { var connection_result_observer = new MutationObserver((mutations) => {
mutations.forEach((mutation) => { mutations.forEach((mutation) => {
if (mutation.type === 'childList') { if (mutation.type === 'childList') {
var target = mutation.target; var target = mutation.target;
@ -63,7 +63,7 @@ var observer = new MutationObserver((mutations, observer) => {
var target = document.getElementById('resultsOverview'); var target = document.getElementById('resultsOverview');
if(typeof target !== 'undefined') { if(typeof target !== 'undefined') {
observer.observe(target, { connection_result_observer.observe(target, {
subtree: true, subtree: true,
childList: true childList: true
}); });