From e0b3428a042e6457404788d5b6387f915e145a53 Mon Sep 17 00:00:00 2001 From: booploops <49113086+booploops@users.noreply.github.com> Date: Fri, 25 Feb 2022 18:04:04 -0800 Subject: [PATCH] fix for directives --- src/renderer/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/index.js b/src/renderer/index.js index 46733c02..f262bc56 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -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