summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrien333 <rien334@gmail.com>2019-09-13 23:51:48 +0200
committerrien333 <rien334@gmail.com>2019-09-13 23:51:48 +0200
commit5913c4c0dcce85af8d26d776e349d3b3c84a6462 (patch)
tree59e44cc1efa49e763ea298675ac687098e4b6afa
parent8e83b679fec721a5cc83bebe678b0c690a06cb89 (diff)
downloadqutebrowser-5913c4c0dcce85af8d26d776e349d3b3c84a6462.tar.gz
qutebrowser-5913c4c0dcce85af8d26d776e349d3b3c84a6462.zip
use fromFile instead of fromURL
-rwxr-xr-xmisc/userscripts/readability-js2
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;