summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <git-repo@palemoon.org>2019-05-06 14:17:55 +0000
committerGitHub <noreply@github.com>2019-05-06 14:17:55 +0000
commited76f37e116e6f473cf33fffae476cfdc747c3bd (patch)
tree31add4761829a46915285616c252c36ce13d653f
parentd73794a1245b40010ea4713599cb8a8d3eb0aed5 (diff)
parent275ab12e2770e9661c76c6dbc4c17eda0c6b0892 (diff)
downloadbasilisk-ed76f37e116e6f473cf33fffae476cfdc747c3bd.tar.gz
Merge pull request MoonchildProductions/UXP#1080 from Ascrod/readerview
Reader Updates
-rw-r--r--basilisk/base/content/tab-content.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/basilisk/base/content/tab-content.js b/basilisk/base/content/tab-content.js
index 35ef8ce..fec13eb 100644
--- a/basilisk/base/content/tab-content.js
+++ b/basilisk/base/content/tab-content.js
@@ -20,6 +20,8 @@ XPCOMUtils.defineLazyModuleGetter(this, "AboutReader",
"resource://gre/modules/AboutReader.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "ReaderMode",
"resource://gre/modules/ReaderMode.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "Readerable",
+ "resource://gre/modules/Readerable.jsm");
XPCOMUtils.defineLazyGetter(this, "SimpleServiceDiscovery", function() {
let ssdp = Cu.import("resource://gre/modules/SimpleServiceDiscovery.jsm", {}).SimpleServiceDiscovery;
// Register targets
@@ -336,7 +338,7 @@ var AboutReaderListener = {
* painted is not going to work.
*/
updateReaderButton: function(forceNonArticle) {
- if (!ReaderMode.isEnabledForParseOnLoad || this.isAboutReader ||
+ if (!Readerable.isEnabledForParseOnLoad || this.isAboutReader ||
!content || !(content.document instanceof content.HTMLDocument) ||
content.document.mozSyntheticDocument) {
return;
@@ -375,7 +377,7 @@ var AboutReaderListener = {
this.cancelPotentialPendingReadabilityCheck();
// Only send updates when there are articles; there's no point updating with
// |false| all the time.
- if (ReaderMode.isProbablyReaderable(content.document)) {
+ if (Readerable.isProbablyReaderable(content.document)) {
sendAsyncMessage("Reader:UpdateReaderButton", { isArticle: true });
} else if (forceNonArticle) {
sendAsyncMessage("Reader:UpdateReaderButton", { isArticle: false });