mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
fix getValue
method
This commit is contained in:
parent
5ec79e2e6d
commit
7369126c65
@ -137,6 +137,9 @@ export default class StyleCore extends Core {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getValue = (key) => {
|
getValue = (key) => {
|
||||||
|
const storagedModifications = this.getStoragedModifications()
|
||||||
|
const staticValues = this.theme.staticVars
|
||||||
|
|
||||||
if (typeof key === "undefined") {
|
if (typeof key === "undefined") {
|
||||||
return {
|
return {
|
||||||
...staticValues,
|
...staticValues,
|
||||||
@ -144,9 +147,6 @@ export default class StyleCore extends Core {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const storagedModifications = this.getStoragedModifications()
|
|
||||||
const staticValues = this.theme.staticVars
|
|
||||||
|
|
||||||
return storagedModifications[key] || staticValues[key]
|
return storagedModifications[key] || staticValues[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user