mirror of
https://github.com/dborth/vbagx.git
synced 2024-12-27 11:11:50 +01:00
Remove use of dom7
This commit is contained in:
parent
082b265b09
commit
49d19cf5e1
@ -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){
|
||||
|
@ -37,7 +37,6 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import $ from 'dom7';
|
||||
import user from '../js/stores/user.js';
|
||||
|
||||
export default (props, { $f7, $on, $update, $f7router }) => {
|
||||
|
Loading…
Reference in New Issue
Block a user