summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xjs/readability.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/readability.js b/js/readability.js
index 64abcdc..fe2e3bb 100755
--- a/js/readability.js
+++ b/js/readability.js
@@ -7,7 +7,9 @@ var readabilityVersion = "0.3";
objOverlay.id = "readOverlay";
objinnerDiv.id = "readInner";
- document.body.readability = {"contentScore": 0, originalHTML: document.body.innerHTML.toString()};
+ // If we've already called readability once, leave the original content there.
+ if(typeof document.body.readability == 'undefined')
+ document.body.readability = {"contentScore": 0, originalHTML: document.body.innerHTML.toString()};
// Apply user-selected styling:
document.body.className = readStyle;