fix for directives
This commit is contained in:
parent
bef0132e90
commit
e0b3428a04
1 changed files with 2 additions and 2 deletions
|
@ -934,8 +934,8 @@ const app = new Vue({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getThemeDirective(directive = "") {
|
getThemeDirective(directive = "") {
|
||||||
if(typeof this.chrome.appliedTheme.info != "object") {
|
if(typeof this.chrome.appliedTheme.info.directives != "object") {
|
||||||
return
|
return ""
|
||||||
}
|
}
|
||||||
if(this.chrome.appliedTheme.info.directives[directive]) {
|
if(this.chrome.appliedTheme.info.directives[directive]) {
|
||||||
return this.chrome.appliedTheme.info.directives[directive].value
|
return this.chrome.appliedTheme.info.directives[directive].value
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue