From 99c1f52f5bcb2bc7ff7ae5e4e63aeb3b8235a785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Mon, 17 Jun 2019 20:44:49 +0200 Subject: [PATCH] fix check support for resize observer --- packages/tiptap/src/Plugins/FloatingMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tiptap/src/Plugins/FloatingMenu.js b/packages/tiptap/src/Plugins/FloatingMenu.js index 7923d8ad7..2441b1d64 100644 --- a/packages/tiptap/src/Plugins/FloatingMenu.js +++ b/packages/tiptap/src/Plugins/FloatingMenu.js @@ -28,7 +28,7 @@ class Menu { // sometimes we have to update the position // because of a loaded images for example - if (this.options.resizeObserver && ResizeObserver) { + if (this.options.resizeObserver && window.ResizeObserver) { this.resizeObserver = new ResizeObserver(() => { if (this.isActive) { this.update(this.editorView)