Commit 5b590280 5b590280f33df3240bcf93c282d7d7c0772c7fad by Nicolas Perriault

fixed #2: toString representation of WebPage instance should be checked, not the…

… object instance itself
1 parent a5fdadca
......@@ -631,7 +631,7 @@
if (phantom.version.major <= 1 && phantom.version.minor < 3) {
return what instanceof WebPage;
} else {
return what.indexOf('WebPage(') === 0;
return what.toString().indexOf('WebPage(') === 0;
}
}
})(phantom);
......