@symbo.ls/scratch 2.6.9 → 2.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/system/theme.js +2 -2
package/package.json
CHANGED
package/src/system/theme.js
CHANGED
|
@@ -146,7 +146,7 @@ export const setMediaTheme = (val, key, suffix, prefers) => {
|
|
|
146
146
|
const { CSS_VARS } = CONFIG
|
|
147
147
|
const theme = { value: val }
|
|
148
148
|
|
|
149
|
-
if (
|
|
149
|
+
if (isObjectLike(val)) {
|
|
150
150
|
for (const param in val) {
|
|
151
151
|
const symb = param.slice(0, 1)
|
|
152
152
|
const value = val[param]
|
|
@@ -191,7 +191,7 @@ const recursiveTheme = val => {
|
|
|
191
191
|
const obj = {}
|
|
192
192
|
for (const param in val) {
|
|
193
193
|
const symb = param.slice(0, 1)
|
|
194
|
-
if (
|
|
194
|
+
if (isObjectLike(val[param])) {
|
|
195
195
|
if (symb === '@') {
|
|
196
196
|
const query = CONFIG.MEDIA[param.slice(1)]
|
|
197
197
|
const media = `@media screen and ${query}`
|