fix: timers type in browser env (#3875)

(cherry picked from commit fc9981335b)
This commit is contained in:
Camol
2023-08-22 03:14:25 +08:00
committed by Alex Yang
parent 96dcd84ee1
commit 9eee00ddf3
11 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ const BookMarkUI = ({ page }: BookMarkProps) => {
if (!shouldShowBookmarkMenu(pastedBlocks)) {
return;
}
setTimeout(() => {
window.setTimeout(() => {
setAnchor(getCurrentNativeRange());
}, 100);
});