Browse Source

:bug: https://github.com/siyuan-note/siyuan/issues/11709

Vanessa 1 year ago
parent
commit
43b18ad750
1 changed files with 6 additions and 1 deletions
  1. 6 1
      app/src/block/popover.ts

+ 6 - 1
app/src/block/popover.ts

@@ -70,7 +70,12 @@ export const initBlockPopover = (app: App) => {
             }
             }
             if (tip && !aElement.classList.contains("b3-tooltips")) {
             if (tip && !aElement.classList.contains("b3-tooltips")) {
                 // https://github.com/siyuan-note/siyuan/issues/11294
                 // https://github.com/siyuan-note/siyuan/issues/11294
-                showTooltip(decodeURIComponent(tip), aElement);
+                try {
+                    showTooltip(decodeURIComponent(tip), aElement);
+                } catch (e) {
+                    // https://ld246.com/article/1718235737991
+                    showTooltip(tip, aElement);
+                }
                 event.stopPropagation();
                 event.stopPropagation();
             } else {
             } else {
                 hideTooltip();
                 hideTooltip();