Skip to content

Commit 370eb68

Browse files
committed
Merge remote-tracking branch 'origin/dev' into dev
2 parents 17e8186 + b687562 commit 370eb68

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/plugin/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ export class Plugin {
277277
}
278278

279279
public removeData(storageName: string) {
280+
if (window.siyuan.config.readonly || window.siyuan.isPublish) {
281+
return;
282+
}
283+
280284
return new Promise((resolve) => {
281285
if (!this.data) {
282286
this.data = {};

0 commit comments

Comments
 (0)