1
0
Fork 0

wip: Work on editor

This commit is contained in:
joostdecock 2025-01-05 17:58:31 +01:00
parent 922bd04130
commit 94b8efa4a2
31 changed files with 677 additions and 614 deletions

View file

@ -34,7 +34,7 @@ export const useEditorState = (init = {}, setEphemeralState, config) => {
if (typeof URLSearchParams !== 'undefined') {
try {
const data = getHashData()
if (data.s === 'object') setState(data.s)
if (typeof data.s === 'object') setState(data.s)
else setState(init)
} catch (err) {
setState(init)