mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
fc08e01de2
commit
2d31620eb5
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ export const setLocalStorage = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const exportLocalStorage = (cb: () => void) => {
|
export const exportLocalStorage = (cb: () => void) => {
|
||||||
fetchPost("/api/system/setLocalStorage", {val: JSON.stringify(localStorage)}, () => {
|
fetchPost("/api/system/setLocalStorage", {val: window.localStorage}, () => {
|
||||||
cb();
|
cb();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue