Remove debug output; remove dead code
This commit is contained in:
parent
2aa38680e6
commit
9c71b87c6e
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue