Check if document body exists
This commit is contained in:
parent
83f8d84012
commit
7d181ee4b5
@ -965,7 +965,8 @@ window._qutebrowser.caret = (function() { // eslint-disable-line max-statements,
|
|||||||
window.caretBrowsingLoaded = true;
|
window.caretBrowsingLoaded = true;
|
||||||
CaretBrowsing.init();
|
CaretBrowsing.init();
|
||||||
|
|
||||||
if (document.body.getAttribute("caretbrowsing") === "on") {
|
if (document.body &&
|
||||||
|
document.body.getAttribute("caretbrowsing") === "on") {
|
||||||
CaretBrowsing.forceEnabled = true;
|
CaretBrowsing.forceEnabled = true;
|
||||||
CaretBrowsing.isEnabled = true;
|
CaretBrowsing.isEnabled = true;
|
||||||
CaretBrowsing.updateIsCaretVisible();
|
CaretBrowsing.updateIsCaretVisible();
|
||||||
|
Loading…
Reference in New Issue
Block a user