diff options
author | rien333 <rien334@gmail.com> | 2019-09-13 23:51:48 +0200 |
---|---|---|
committer | rien333 <rien334@gmail.com> | 2019-09-13 23:51:48 +0200 |
commit | 5913c4c0dcce85af8d26d776e349d3b3c84a6462 (patch) | |
tree | 59e44cc1efa49e763ea298675ac687098e4b6afa | |
parent | 8e83b679fec721a5cc83bebe678b0c690a06cb89 (diff) | |
download | qutebrowser-5913c4c0dcce85af8d26d776e349d3b3c84a6462.tar.gz qutebrowser-5913c4c0dcce85af8d26d776e349d3b3c84a6462.zip |
use fromFile instead of fromURL
-rwxr-xr-x | misc/userscripts/readability-js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/userscripts/readability-js b/misc/userscripts/readability-js index 9e2e2f1c9..6d357fdad 100755 --- a/misc/userscripts/readability-js +++ b/misc/userscripts/readability-js @@ -47,7 +47,7 @@ const HEADER = ` </style> </head>`; -JSDOM.fromURL(process.env.QUTE_URL).then(dom => { +JSDOM.fromFile(process.env.QUTE_HTML, { url: process.env.QUTE_URL }).then(dom => { let reader = new Readability(dom.window.document); let article = reader.parse(); let content = util.format(HEADER, article.title) + article.content; |