From 05cfcf7c2b8bda82eb9d0ccd67a4707b9da18a65 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 30 Sep 2023 20:46:00 +0800 Subject: [PATCH] :art: https://ld246.com/article/1695361968294 --- app/src/protyle/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts index bb5872408..35477bec4 100644 --- a/app/src/protyle/index.ts +++ b/app/src/protyle/index.ts @@ -265,8 +265,9 @@ export class Protyle { } else { this.getDoc(mergedOptions); } + } else { + this.protyle.contentElement.classList.add("protyle-content--transition"); } - this.protyle.contentElement.classList.add("protyle-content--transition"); } private getDoc(mergedOptions: IOptions) { @@ -339,6 +340,7 @@ export class Protyle { if (mergedOptions.after) { mergedOptions.after(this); } + this.protyle.contentElement.classList.add("protyle-content--transition"); } private init() {