summaryrefslogtreecommitdiff
path: root/simplyread.js
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2011-05-21 12:54:14 +0100
committerNick White <git@njw.me.uk>2011-05-21 12:54:14 +0100
commitbf340e9f5ed22058877af1878c85c16de1dd8904 (patch)
treefb1f1cd1ba6d4331645df8ce455b67e91e3ca3ae /simplyread.js
parent4cdb10438dad3fd4b9ecc8ef96538f4219b42e5e (diff)
Make chromium extension a page action
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 */