mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-25 23:47:47 +01:00
banner insert: extra check for document.body before adding banner
This commit is contained in:
parent
7aac3aa2dd
commit
703ec0eb5e
@ -35,6 +35,10 @@ function init_banner() {
|
|||||||
bid = PLAIN_BANNER_ID;
|
bid = PLAIN_BANNER_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!document || !document.body) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (document.getElementById(bid) != null) {
|
if (document.getElementById(bid) != null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user