summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsimplyread.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/simplyread.js b/simplyread.js
index 1f5ba17..15baf2b 100755
--- a/simplyread.js
+++ b/simplyread.js
@@ -1,6 +1,6 @@
/* See COPYING file for copyright, license and warranty details. */
-if(window.content && window.content.document.simplyread_original === undefined) window.content.document.simplyread_original = false;
+if(window.content && window.content.document && window.content.document.simplyread_original === undefined) window.content.document.simplyread_original = false;
function simplyread(nostyle, nolinks)
{