fix for directives

This commit is contained in:
booploops 2022-02-25 18:04:04 -08:00
parent bef0132e90
commit e0b3428a04

View file

@ -934,8 +934,8 @@ const app = new Vue({
}
},
getThemeDirective(directive = "") {
if(typeof this.chrome.appliedTheme.info != "object") {
return
if(typeof this.chrome.appliedTheme.info.directives != "object") {
return ""
}
if(this.chrome.appliedTheme.info.directives[directive]) {
return this.chrome.appliedTheme.info.directives[directive].value