chore: add comments
This commit is contained in:
parent
d5ced0718f
commit
539508d1ab
1 changed files with 1 additions and 0 deletions
|
@ -58,6 +58,7 @@ export const BrowserSyncStorageImpl = BrowserSyncStorageExtern.impl({
|
||||||
name: STORAGE_NAME,
|
name: STORAGE_NAME,
|
||||||
get: async (key) => {
|
get: async (key) => {
|
||||||
const value: any = await browserSyncStorage.getItem(key)
|
const value: any = await browserSyncStorage.getItem(key)
|
||||||
|
// Compatibility with old version data
|
||||||
try {
|
try {
|
||||||
return JSONR.parse(value)
|
return JSONR.parse(value)
|
||||||
} catch {
|
} catch {
|
||||||
|
|
Loading…
Reference in a new issue