capture-template
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -70,2 +70,15 @@ "use strict"; | ||
}); | ||
this.nightmare.on('page', function (type, message, stack) { | ||
if (type === "error") { | ||
console.error("Browser page error: " + message); | ||
console.error(stack); | ||
} | ||
}); | ||
this.nightmare.on("did-fail-load", function (event, errorCode, errorDescription, validatedURL, isMainFrame) { | ||
console.error("Browser page failed to load."); | ||
console.error("Error code: " + errorCode); | ||
console.error("Error description: " + errorDescription); | ||
console.error("Validated URL: " + validatedURL); | ||
console.error("Is main frame: " + isMainFrame); | ||
}); | ||
this.nightmare.on('console', function (type, message) { | ||
@@ -72,0 +85,0 @@ if (type === 'log') { |
{ | ||
"name": "capture-template", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "This library is responsible for expanding a template web page and then capturing it PNG or PDF.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
76884
1243