fix tinter for LeftPanel

pull/21833/head
Matthew Hodgson 2016-09-16 02:53:41 +01:00
parent 2c7c382d56
commit 1c1c31eafc
1 changed files with 3 additions and 3 deletions

View File

@ -23,11 +23,11 @@ var sdk = require("./index");
var DEBUG = 0; var DEBUG = 0;
// The colour keys to be replaced as referred to in SVGs // The colour keys to be replaced as referred to in CSS
var keyRgb = [ var keyRgb = [
"rgb(118, 207, 166)", // Vector Green "rgb(118, 207, 166)", // Vector Green
"rgb(234, 245, 240)", // Vector Light Green "rgb(234, 245, 240)", // Vector Light Green
"rgba(118, 207, 166, 0.2)", // BottomLeftMenu overlay (20% Vector Green) "rgb(211, 239, 225)", // BottomLeftMenu overlay (20% Vector Green)
]; ];
// Some algebra workings for calculating the tint % of Vector Green & Light Green // Some algebra workings for calculating the tint % of Vector Green & Light Green
@ -210,7 +210,7 @@ module.exports = {
for (var i = 0; i < svgs.length; i++) { for (var i = 0; i < svgs.length; i++) {
var svgDoc; var svgDoc;
try { try {
svgDoc = svgs[i].contentDocument; svgDoc = svgs[i].contentDocument;
} }
catch(e) { catch(e) {
var msg = 'Failed to get svg.contentDocument of ' + svgs[i].toString(); var msg = 'Failed to get svg.contentDocument of ' + svgs[i].toString();