From 07d1b628ecb06f4c750e53f283583e7410e1d360 Mon Sep 17 00:00:00 2001 From: Gary Kaganas Date: Tue, 9 Nov 2021 14:09:08 -0500 Subject: [PATCH] fix(mxClient) Fixes NO_FO (foreignObject support is not available) test --- packages/core/src/mxClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/mxClient.js b/packages/core/src/mxClient.js index ddfe38551..db552bc07 100644 --- a/packages/core/src/mxClient.js +++ b/packages/core/src/mxClient.js @@ -366,7 +366,7 @@ const mxClient = { document.createElementNS( 'http://www.w3.org/2000/svg', 'foreignObject' - ) !== '[object SVGForeignObjectElement]' || + ).toString() !== '[object SVGForeignObjectElement]' || navigator.userAgent.indexOf('Opera/') >= 0), /**