diff --git a/src/webpage.cpp b/src/webpage.cpp index 0d2b13fd1c..b5ff679150 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -76,8 +76,8 @@ #define BLANK_HTML "" #define CALLBACKS_OBJECT_NAME "_phantom" #define INPAGE_CALL_NAME "window.callPhantom" -#define CALLBACKS_OBJECT_INJECTION INPAGE_CALL_NAME" = function() { return window."CALLBACKS_OBJECT_NAME".call.call(_phantom, Array.prototype.slice.call(arguments, 0)); };" -#define CALLBACKS_OBJECT_PRESENT "typeof(window."CALLBACKS_OBJECT_NAME") !== \"undefined\";" +#define CALLBACKS_OBJECT_INJECTION INPAGE_CALL_NAME " = function() { return window." CALLBACKS_OBJECT_NAME ".call.call(_phantom, Array.prototype.slice.call(arguments, 0)); };" +#define CALLBACKS_OBJECT_PRESENT "typeof(window." CALLBACKS_OBJECT_NAME ") !== \"undefined\";" #define STDOUT_FILENAME "/dev/stdout" #define STDERR_FILENAME "/dev/stderr"