Fix urls argument to support multiple urls
This commit is contained in:
6
screenshot.js
Executable file → Normal file
6
screenshot.js
Executable file → Normal file
@@ -12,7 +12,7 @@ if (args.length === 1) {
|
||||
});
|
||||
}
|
||||
var scriptname=args.shift()
|
||||
urls=args
|
||||
urls=args.slice(1)
|
||||
// var urls = [
|
||||
// "http://www.google.de",
|
||||
// "http://heise.de",
|
||||
@@ -20,9 +20,11 @@ urls=args
|
||||
// ]
|
||||
var webpage = require('webpage'),
|
||||
page = webpage.create(),
|
||||
// page.width=1920;
|
||||
nr = 0;
|
||||
page.viewportSize = {width: 1920, height: 15000};
|
||||
// Seitendimensionen ggf. anpassen
|
||||
//page.viewportSize = {width: 1920, height: 4000};
|
||||
|
||||
|
||||
var screenshot = function() {
|
||||
if (!urls.length) phantom.exit();
|
||||
|
||||
Reference in New Issue
Block a user