Yuki Takei 3 سال پیش
والد
کامیت
6bc35b647e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/remark-drawio-plugin/src/components/DrawioViewer.tsx

+ 1 - 1
packages/remark-drawio-plugin/src/components/DrawioViewer.tsx

@@ -42,7 +42,7 @@ export const DrawioViewer = React.memo((props: DrawioViewerProps): JSX.Element =
       return;
     }
 
-    if (GraphViewer == null || !isGraphViewerGlobal(GraphViewer)) {
+    if (!('GraphViewer' in window && isGraphViewerGlobal(GraphViewer))) {
       // Do nothing if loading has not been terminated.
       // Alternatively, GraphViewer.processElements() will be called in Script.onLoad.
       // see DrawioViewerScript.tsx