From bf340e9f5ed22058877af1878c85c16de1dd8904 Mon Sep 17 00:00:00 2001 From: Nick White Date: Sat, 21 May 2011 12:54:14 +0100 Subject: Make chromium extension a page action --- simplyread.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'simplyread.js') 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 */ -- cgit v1.2.3