jamesgpearce / confess

[ARCHIVED] Uses PhantomJS to headlessly analyze web pages and generate manifests. You may be able to use the puppeteer-har package instead.
874 stars 101 forks source link

Update to also support PhantomJS v2.0 #11

Open ssc opened 8 years ago

ssc commented 8 years ago

I just tried to clone confess.js and use it with the current version of PhantomJS. Looks like they made a backwards incompatible change with v2.0 in that they no longer support phantom.args but rather require the use of system.args Also they have added the script name as the first argument.

I've tried to add the minimal code to confess.js to get it to run on v2.0 while maintaining backwards compatibility so people can still run it on v1.2, etc.