Skip to content

Commit

Permalink
fix(comment2): fix delay options
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Mar 20, 2023
1 parent 1cb3ee6 commit 7a6e913
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/comment2/src/client/components/Artalk.ts
Expand Up @@ -67,7 +67,7 @@ export default defineComponent({
new Promise<void>((resolve) => {
setTimeout(() => {
void nextTick().then(resolve);
}, artalkOptions.delay);
}, artalkOptions.delay || 800);
}),
]).then(([{ default: _Artalk }]) => {
// FIXME: Typescript type issues
Expand Down
2 changes: 1 addition & 1 deletion packages/comment2/src/client/components/Twikoo.ts
Expand Up @@ -53,7 +53,7 @@ export default defineComponent({
new Promise<void>((resolve) => {
setTimeout(() => {
void nextTick().then(resolve);
}, twikooOption.delay);
}, twikooOption.delay || 800);
}),
]);

Expand Down

0 comments on commit 7a6e913

Please sign in to comment.