From 21dd69706d209d383f72a66b106c502334f8b3f0 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Fri, 25 Oct 2019 13:16:06 +0200 Subject: [PATCH] web2image --- pandora_console/include/web2image.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/pandora_console/include/web2image.js b/pandora_console/include/web2image.js index 9c1ed0237c..8e2887aa26 100644 --- a/pandora_console/include/web2image.js +++ b/pandora_console/include/web2image.js @@ -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.");