From 497efe36ff4a364c5aae221d8121afd686da76da Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Fri, 30 Oct 2020 23:20:10 -0600 Subject: [PATCH] Add css_var back to the mixin --- src/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.js b/src/main.js index a24a2ba..bc7f0d2 100644 --- a/src/main.js +++ b/src/main.js @@ -33,6 +33,9 @@ Vue.mixin({ }, }, methods: { + css_var(var_name) { + return getComputedStyle(document.documentElement).getPropertyValue(var_name); + }, auth_expired(error = null) { sessionStorage.removeItem(this.storage_key.token); window.location.hash = ``;