Skip to content

Commit

Permalink
Stop js errors on creepjs page
Browse files Browse the repository at this point in the history
  • Loading branch information
david-dick committed Jun 7, 2024
1 parent f57b6d2 commit 3e5215b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Firefox/Marionette/Extension/Timezone.pm
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,15 @@ sub timezone_contents {
if (mutation.type === "childList") {
for (let node of mutation.addedNodes) {
if (node.nodeName === "IFRAME") {
setTimezone(node.contentWindow);
if (node.contentWindow !== null) {
setTimezone(node.contentWindow);
}
}
}
}
}
}).observe((document.head || document.documentElement), { attributes: true, childList: true, subtree: true });
if (("console" in window) && ("log" in window.console)) {
console.log("Loaded Firefox::Marionette::Extension::Timezone");
}
Expand Down

0 comments on commit 3e5215b

Please sign in to comment.