web2image

This commit is contained in:
fbsanchez 2019-10-25 13:16:06 +02:00
parent 440874d436
commit 21dd69706d
1 changed files with 0 additions and 15 deletions

View File

@ -50,14 +50,6 @@ if (type_graph_pdf == "combined") {
var page = require("webpage").create();
page.settings.resourceTimeout = 3600000; // 1 hour
page.onResourceTimeout = function(e) {
console.log(e.errorCode);
console.log(e.errorString);
console.log(e.url);
phantom.exit(1);
};
page.onResourceError = function(resourceError) {
console.log(
"Unable to load resource (#" +
@ -75,13 +67,6 @@ page.onResourceError = function(resourceError) {
phantom.exit(1);
};
page.onUrlChanged = function(targetUrl) {
if (url == targetUrl) {
phantom.exit(1);
}
url = targetUrl;
};
// Not supposed to be prompted messages.
page.onPrompt = function() {
console.log("Prompt message detected.");