Remove debug output; remove dead code

This commit is contained in:
Gigi 2019-11-06 14:24:53 +01:00
parent 2aa38680e6
commit 9c71b87c6e
1 changed files with 0 additions and 15 deletions

View File

@ -71,20 +71,6 @@ function runReadability(source) {
console.error(ex);
ex.stack.forEach(console.log.bind(console));
}
// // Use jsdom for isProbablyReaderable because it supports querySelectorAll
// try {
// var jsdomDoc = jsdom(source, {
// features: {
// FetchExternalResources: false,
// ProcessExternalResources: false
// }
// });
// myReader = new Readability(jsdomDoc);
// readerable = myReader.isProbablyReaderable();
// } catch (ex) {
// console.error(ex);
// ex.stack.forEach(console.log.bind(console));
// }
if (!result) {
console.error("No content generated by readability!");
return;
@ -106,7 +92,6 @@ function onResponseReceived(error, source) {
module.exports = {
parseUrl: function(theUrl) {
console.log('Fetching URL', theUrl)
return fetchSource(theUrl, onResponseReceived);
}
};