fix: i18n hydration on dev
This commit is contained in:
parent
f96a9417da
commit
6b90131783
2 changed files with 6 additions and 13 deletions
|
@ -10,8 +10,7 @@ export default defineNuxtPlugin(() => {
|
|||
{
|
||||
innerHTML: `
|
||||
;(function() {
|
||||
const handle = localStorage.getItem('${STORAGE_KEY_CURRENT_USER_HANDLE}')
|
||||
if (!handle) { return }
|
||||
const handle = localStorage.getItem('${STORAGE_KEY_CURRENT_USER_HANDLE}') || '[anonymous]'
|
||||
const allSettings = JSON.parse(localStorage.getItem('${STORAGE_KEY_SETTINGS}') || '{}')
|
||||
const settings = allSettings[handle]
|
||||
if (!settings) { return }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue