fix issue with storage

This commit is contained in:
jfh
2020-09-09 01:35:47 +02:00
parent ff71d836f8
commit 029ed1a1e1
76 changed files with 780 additions and 948 deletions

View File

@@ -165,10 +165,10 @@ export default {
let loaded = false;
return {
name: 'storage',
async langReady ({importLocale}) {
async langReady ({lang}) {
const storagePrompt = new URL(top.location).searchParams.get('storagePrompt');
const confirmSetStorage = await importLocale();
// eslint-disable-next-line node/no-unsupported-features/es-syntax
const {default: confirmSetStorage} = await import(`./locale/${lang}.js`);
const {
message, storagePrefsAndContent, storagePrefsOnly,
storagePrefs, storageNoPrefsOrContent, storageNoPrefs,