From 78721d772854eacd6bbf7e117c4bec343f279cfc Mon Sep 17 00:00:00 2001 From: Thaddee Tyl Date: Thu, 5 May 2016 20:08:21 +0200 Subject: [PATCH] Upgrade phantomjs Fixes https://github.com/badges/shields/issues/645#issuecomment-217222593. --- package.json | 2 +- svg-to-img.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 31673a5..66046f7 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "dot": "~1.0.3", "svgo": "~0.5.1", "pdfkit": "~0.7.1", - "phantomjs": "~1.9.2-6", + "phantomjs-prebuilt": "~2.1.7", "es6-promise": "~2.1.0", "request": "~2.55.0", "redis": "~1.0.0", diff --git a/svg-to-img.js b/svg-to-img.js index 662bbb8..b777570 100644 --- a/svg-to-img.js +++ b/svg-to-img.js @@ -1,7 +1,7 @@ var fs = require('fs'); var os = require('os'); var path = require('path'); -var phantom = require('phantomjs'); +var phantom = require('phantomjs-prebuilt'); var LruCache = require('./lru-cache.js'); var childProcess = require('child_process'); var phantomScript = path.join(__dirname, 'phantomjs-svg2png.js');