summaryrefslogtreecommitdiff
path: root/simplyread.js
diff options
context:
space:
mode:
Diffstat (limited to 'simplyread.js')
-rwxr-xr-xsimplyread.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/simplyread.js b/simplyread.js
index c7b56b5..832b3c2 100755
--- a/simplyread.js
+++ b/simplyread.js
@@ -21,10 +21,8 @@ function simplyread()
}
var doc;
- if(document.body === undefined)
- doc = window.content.document;
- else
- doc = document;
+ doc = (document.body === undefined)
+ ? window.content.document : document;
/* if simplyread_original is set, then the simplyread version is currently active,
* so switch to the simplyread_original html */