Skip to content

Commit

Permalink
Dont warn if there's no rainbow
Browse files Browse the repository at this point in the history
  • Loading branch information
larsenwork committed Sep 2, 2018
1 parent 4c6bc91 commit a4ced91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ export function getLayerParams(layer, gradientFill) {
;[timing, colorSpace, colorStops] = gradientParams
} else if (gradientParams.length === 2) {
;[timing, colorSpace] = gradientParams
} else {
} else if (layer.name.includes('🌈')) {
UI.message("🌈 ⚠️ Couldn't parse the layer name. Setting defaults.")
} else {
UI.message('No 🌈 in layer name. Setting defaults.')
}

const paramsAsString = JSON.stringify([
Expand Down

0 comments on commit a4ced91

Please sign in to comment.