From 49d19cf5e191954a52170eb64885106130f8d403 Mon Sep 17 00:00:00 2001 From: Juan Carlos Ruvalcaba Date: Tue, 28 Sep 2021 21:13:31 -0700 Subject: [PATCH] Remove use of dom7 --- src/js/stores/theme.js | 3 +-- src/pages/login.f7.html | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/js/stores/theme.js b/src/js/stores/theme.js index 62c92cd..312ddac 100644 --- a/src/js/stores/theme.js +++ b/src/js/stores/theme.js @@ -1,5 +1,4 @@ import { createStore } from 'framework7'; -import $ from 'dom7'; import { localForage } from "./../api/config.js"; const theme = createStore({ @@ -15,7 +14,7 @@ const theme = createStore({ async checkTheme({ dispatch }, selector){ let theme = await localForage.getItem('theme'); if (theme == null) theme = 'theme-dark'; - if (theme != 'theme-dark'){ $(selector).removeClass('theme-dark'); } + if (theme != 'theme-dark'){ document.querySelector(selector).classList.remove('theme-dark'); } dispatch('changeTheme', theme); }, async initTheme({ dispatch }, selector){ diff --git a/src/pages/login.f7.html b/src/pages/login.f7.html index 5113ac2..9afcf77 100644 --- a/src/pages/login.f7.html +++ b/src/pages/login.f7.html @@ -37,7 +37,6 @@