1
0
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:
Ilya Kreymer 2014-11-02 16:11:03 -08:00
parent 7aac3aa2dd
commit 703ec0eb5e

View File

@ -35,6 +35,10 @@ function init_banner() {
bid = PLAIN_BANNER_ID;
}
if (!document || !document.body) {
return;
}
if (document.getElementById(bid) != null) {
return;
}