summaryrefslogtreecommitdiffstats
path: root/application/basilisk
diff options
context:
space:
mode:
authorAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-25 20:08:17 -0400
committerAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-27 07:43:12 -0400
commit945b03265637bc8bf5bcd960909d1e8a4ddd5440 (patch)
tree0eba8090ed198c1d076565d86dd21ad08dcca5f5 /application/basilisk
parentccc4363462053edfc9cf616afa7f86b3244aaff6 (diff)
downloadUXP-945b03265637bc8bf5bcd960909d1e8a4ddd5440.tar
UXP-945b03265637bc8bf5bcd960909d1e8a4ddd5440.tar.gz
UXP-945b03265637bc8bf5bcd960909d1e8a4ddd5440.tar.lz
UXP-945b03265637bc8bf5bcd960909d1e8a4ddd5440.tar.xz
UXP-945b03265637bc8bf5bcd960909d1e8a4ddd5440.zip
Update surrounding code for new Readerable module. Tag #361.
Diffstat (limited to 'application/basilisk')
-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 35ef8ceb2..fec13eba7 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 });