mirror of https://github.com/vitalif/phantomjs
Remove unfinished browsermode example.
parent
e808690fd8
commit
c1781944c7
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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
|
|
Loading…
Reference in New Issue