Prevent multiple injections
This commit is contained in:
parent
b5b6431662
commit
6e3e3eb8e8
@ -129,6 +129,12 @@ var connection_result_observer = new MutationObserver((mutations) => {
|
|||||||
|
|
||||||
var timetable = target.querySelector("td div.detailContainer table.result tbody");
|
var timetable = target.querySelector("td div.detailContainer table.result tbody");
|
||||||
|
|
||||||
|
// Just break if there are elements injected by us
|
||||||
|
if(timetable.querySelectorAll(".bahn-insight").length != 0) {
|
||||||
|
log("links already injected")
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COLLECT DATA
|
* COLLECT DATA
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user