mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
370eb68266
1 changed files with 4 additions and 0 deletions
|
|
@ -277,6 +277,10 @@ export class Plugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
public removeData(storageName: string) {
|
public removeData(storageName: string) {
|
||||||
|
if (window.siyuan.config.readonly || window.siyuan.isPublish) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
if (!this.data) {
|
if (!this.data) {
|
||||||
this.data = {};
|
this.data = {};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue