web2image
This commit is contained in:
parent
440874d436
commit
21dd69706d
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue