From da85a7ca871566aceb0ea1a38792a4fb9f7b919b Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Tue, 12 May 2020 15:37:32 +0530 Subject: [PATCH] :bug: Fixing save Collections/Environments on enabling sync --- pages/settings.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/settings.vue b/pages/settings.vue index 6feba75c6..5751b7c54 100644 --- a/pages/settings.vue +++ b/pages/settings.vue @@ -359,7 +359,7 @@ export default { }, getActiveColor() { // This strips extra spaces and # signs from the strings. - const strip = str => str.replace(/#/g, "").replace(/ /g, "") + const strip = (str) => str.replace(/#/g, "").replace(/ /g, "") return `#${strip( window.getComputedStyle(document.documentElement).getPropertyValue("--ac-color") ).toUpperCase()}` @@ -375,10 +375,10 @@ export default { toggleSettings(name, value) { fb.writeSettings(name, !value) if (name === "syncCollections" && value) { - syncCollections() + this.syncCollections() } if (name === "syncEnvironments" && value) { - syncEnvironments() + this.syncEnvironments() } }, initSettings() {