Remove unfinished browsermode example.

1.1
Ariya Hidayat 2011-04-09 23:36:28 -07:00
parent e808690fd8
commit c1781944c7
2 changed files with 0 additions and 24 deletions

View File

@ -1,13 +0,0 @@
if (phantom.args.length === 0) {
console.log("This example instruct PhantomJS to just open a specific URL.")
console.log('URL must be passed as a parameter.');
phantom.exit();
} else {
if (phantom.state.length === 0) {
console.log("Loading: " + phantom.args[0]);
phantom.state = 'gotourl';
phantom.open(phantom.args[0]);
} else {
// TODO - I don't have a specific condition for exit yet
}
}

View File

@ -1,11 +0,0 @@
#!/bin/sh
PHANTOMJS_EXEC="phantomjs"
if which $PHANTOMJS_EXEC >/dev/null; then
# Launch PhantomJS passing all the parameters from the CLI
$PHANTOMJS_EXEC `dirname $0`/browsermode.js $@
else
# Usage
echo "'$PHANTOMJS_EXEC' must be in the \$PATH"
fi