LP#1646166 Hatch extension load-time sanity check
authorBill Erickson <berickxx@gmail.com>
Thu, 8 Dec 2016 21:26:51 +0000 (16:26 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 8 Dec 2016 21:26:53 +0000 (16:26 -0500)
commit624a6147fdc4fd82e9c0c37ae3582bd709090bd1
tree29a63b5fac56dfecd412682e48e83b6045715067
parent2720ac5490d165e103cd70d759cd1a66262bd82c
LP#1646166 Hatch extension load-time sanity check

Avoid unnecessary JS errors by preventing any attempts to link the
extension to the page via document.body when (in rare cases)
document.body is null.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
extension/app/content.js