Change Reader API to use events, remove messaging.

This commit is contained in:
Ascrod 2018-05-13 09:35:23 -04:00 committed by Roy Tam
commit f0af6dce04
4 changed files with 50 additions and 151 deletions

View file

@ -307,7 +307,7 @@ var AboutReaderListener = {
if (content.document.body) {
// Update the toolbar icon to show the "reader active" icon.
sendAsyncMessage("Reader:UpdateReaderButton");
new AboutReader(global, content, this._articlePromise);
new AboutReader(content, this._articlePromise);
this._articlePromise = null;
}
break;