Remove use of dom7

This commit is contained in:
Juan Carlos Ruvalcaba 2021-09-28 21:13:31 -07:00
parent 082b265b09
commit 49d19cf5e1
2 changed files with 1 additions and 3 deletions

View File

@ -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){

View File

@ -37,7 +37,6 @@
</div>
</template>
<script>
import $ from 'dom7';
import user from '../js/stores/user.js';
export default (props, { $f7, $on, $update, $f7router }) => {