@symbo.ls/scratch
Advanced tools
Comparing version 0.7.3 to 0.7.4
@@ -5,3 +5,3 @@ { | ||
"author": "symbo.ls", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "src" |
@@ -14,8 +14,1 @@ 'use strict' | ||
export const THEME = {} | ||
export const returnSubThemeOrDefault = (orig, theme) => { | ||
if (!orig) return | ||
if (orig.themes && orig.themes[theme]) return orig.themes[theme] | ||
if (orig[theme]) return [orig, orig[theme]] | ||
return orig | ||
} |
@@ -213,3 +213,3 @@ 'use strict' | ||
if (isArray(modifier)) return findModifierFromArray(val, modifier) | ||
else if (isString(modifier)) return val[modifier] | ||
else if (isString(modifier) && val[modifier]) return val[modifier] | ||
else return val | ||
@@ -216,0 +216,0 @@ } |
41140
37
1269