mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 21:16:00 +00:00
json tab, json dark mode style fix
This commit is contained in:
@@ -72,7 +72,7 @@ export default function useEditorData({ tabid, reloadToken = 0, loadFromArgs = n
|
||||
if (onInitialData) onInitialData(initFallback);
|
||||
value = initFallback;
|
||||
// move to local forage
|
||||
await localforage.setItem(localStorageKey, initFallback);
|
||||
await localforage.setItem(localStorageKey, JSON.stringify(initFallback));
|
||||
localStorage.removeItem(localStorageKey);
|
||||
} else {
|
||||
const init = await localforage.getItem(localStorageKey);
|
||||
|
||||
Reference in New Issue
Block a user