fix check support for resize observer

This commit is contained in:
Philipp Kühn 2019-06-17 20:44:49 +02:00
parent cd485bba16
commit 99c1f52f5b

View File

@ -28,7 +28,7 @@ class Menu {
// sometimes we have to update the position // sometimes we have to update the position
// because of a loaded images for example // because of a loaded images for example
if (this.options.resizeObserver && ResizeObserver) { if (this.options.resizeObserver && window.ResizeObserver) {
this.resizeObserver = new ResizeObserver(() => { this.resizeObserver = new ResizeObserver(() => {
if (this.isActive) { if (this.isActive) {
this.update(this.editorView) this.update(this.editorView)