2020-10-21 23:03:33 +01:00
|
|
|
import * as sapper from '@sapper/app';
|
2021-05-18 07:25:49 +01:00
|
|
|
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';
|
|
|
|
|
2021-05-18 07:25:49 +01:00
|
|
|
console.log('localforage config');
|
|
|
|
localforage.config({
|
|
|
|
driver: [localforage.INDEXEDDB, localforage.LOCALSTORAGE],
|
|
|
|
name: 'paimonmoe',
|
|
|
|
version: 1.0,
|
|
|
|
description: 'paimonmoe local storage',
|
|
|
|
});
|
|
|
|
|
2021-05-19 04:29:51 +01:00
|
|
|
window.localforage = localforage;
|
|
|
|
|
2021-03-14 10:23:17 +00:00
|
|
|
startClient();
|
|
|
|
|
2020-10-21 23:03:33 +01:00
|
|
|
sapper.start({
|
2021-05-18 07:25:49 +01:00
|
|
|
target: document.querySelector('#sapper'),
|
|
|
|
});
|