mirror of
https://github.com/flynx/colors.js.git
synced 2025-12-27 05:42:05 +00:00
[fix] Map themes to safe api even if module is being used in normal mode #82
This commit is contained in:
parent
fee9d2475f
commit
6a6353f9cd
@ -78,6 +78,7 @@ module['exports'] = function () {
|
||||
}
|
||||
else {
|
||||
if (typeof(theme[prop]) === 'string') {
|
||||
colors[prop] = colors[theme[prop]];
|
||||
addProperty(prop, function () {
|
||||
return colors[theme[prop]](this);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user