mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 15:09:54 +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;
|
||||
}
|
||||
|
||||
if (!document || !document.body) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (document.getElementById(bid) != null) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user