diff options
author | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2018-05-07 19:45:46 -0400 |
---|---|---|
committer | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2018-05-15 21:06:41 -0500 |
commit | b70d884598e1e14b99190e1e5c349553ff59849b (patch) | |
tree | b66af009469ec85d52bf2655afdf8e08dd881abb /toolkit/components/reader/ReaderWorker.js | |
parent | 000ac0cc833c415169ed7aa8c5e3493d0d4525fd (diff) | |
download | UXP-b70d884598e1e14b99190e1e5c349553ff59849b.tar UXP-b70d884598e1e14b99190e1e5c349553ff59849b.tar.gz UXP-b70d884598e1e14b99190e1e5c349553ff59849b.tar.lz UXP-b70d884598e1e14b99190e1e5c349553ff59849b.tar.xz UXP-b70d884598e1e14b99190e1e5c349553ff59849b.zip |
Initial updates for Reader View.
Diffstat (limited to 'toolkit/components/reader/ReaderWorker.js')
-rw-r--r-- | toolkit/components/reader/ReaderWorker.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/toolkit/components/reader/ReaderWorker.js b/toolkit/components/reader/ReaderWorker.js index 20023d4e0..9ae589d7d 100644 --- a/toolkit/components/reader/ReaderWorker.js +++ b/toolkit/components/reader/ReaderWorker.js @@ -2,6 +2,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ +/* eslint-env mozilla/chrome-worker */ + "use strict"; /** @@ -40,11 +42,12 @@ var Agent = { * * @param {object} uri URI data for the document. * @param {string} serializedDoc The serialized document. + * @param {object} options Options object to pass to Readability. * * @return {object} Article object returned from Readability. */ - parseDocument: function (uri, serializedDoc) { + parseDocument(uri, serializedDoc, options) { let doc = new JSDOMParser().parse(serializedDoc); - return new Readability(uri, doc).parse(); + return new Readability(uri, doc, options).parse(); }, }; |