paimon-moe-fork/src/client.js

21 lines
437 B
JavaScript
Raw Normal View History

2020-10-21 23:03:33 +01:00
import * as sapper from '@sapper/app';
import localforage from 'localforage';
2020-10-21 23:03:33 +01:00
2021-03-14 10:23:17 +00:00
import { startClient } from './i18n.js';
console.log('localforage config');
localforage.config({
driver: [localforage.INDEXEDDB, localforage.LOCALSTORAGE],
name: 'paimonmoe',
version: 1.0,
description: 'paimonmoe local storage',
});
window.localforage = localforage;
2021-03-14 10:23:17 +00:00
startClient();
2020-10-21 23:03:33 +01:00
sapper.start({
target: document.querySelector('#sapper'),
});