mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
2f58714b79
commit
3adb7d9ad0
1 changed files with 4 additions and 1 deletions
|
|
@ -221,7 +221,10 @@ const setDefaultStorage = (response: IWebSocketData) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const exportLocalStorage = (cb?: () => void) => {
|
export const exportLocalStorage = (cb?: () => void) => {
|
||||||
fetchPost("/api/storage/setLocalStorage", {val: window.siyuan.storage}, () => {
|
fetchPost("/api/storage/setLocalStorage", {
|
||||||
|
app: Constants.SIYUAN_APPID,
|
||||||
|
val: window.siyuan.storage,
|
||||||
|
}, () => {
|
||||||
if (cb) {
|
if (cb) {
|
||||||
cb();
|
cb();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue