summaryrefslogtreecommitdiff
path: root/application
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
commitd0b65e8b38ddd1c9dde816941eccac5094957f72 (patch)
treecd8526eba923a1ce954c92f54466bb86399ac4a3 /application
parent12d23fb00559d91cc1dc1bf4e74e30caabd22ad5 (diff)
parent5c350eebcda338152572aea64400a07db5ce2ff4 (diff)
downloaduxp-d0b65e8b38ddd1c9dde816941eccac5094957f72.tar.gz
Merge pull request #1080 from Ascrod/readerview
Reader Updates
Diffstat (limited to 'application')
-rw-r--r--application/basilisk/base/content/tab-content.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/application/basilisk/base/content/tab-content.js b/application/basilisk/base/content/tab-content.js
index 35ef8ceb28..fec13eba7c 100644
--- a/application/basilisk/base/content/tab-content.js
+++ b/application/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 });