From 6989450ccdd650d52ac6daaee581bf2f2bad2611 Mon Sep 17 00:00:00 2001 From: pushkin Date: Tue, 13 Oct 2020 11:37:04 +0200 Subject: [PATCH] Update dom.ts --- src/runtime/internal/dom.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/internal/dom.ts b/src/runtime/internal/dom.ts index 2d9ec08e1b..1e12c31e68 100644 --- a/src/runtime/internal/dom.ts +++ b/src/runtime/internal/dom.ts @@ -261,6 +261,7 @@ export function is_crossorigin() { export function add_resize_listener(node: HTMLElement, fn: () => void) { if ('ResizeObserver' in window) { + // @ts-ignore https://github.com/Microsoft/TypeScript/issues/28502 const obs = new ResizeObserver(fn) as any; obs.observe(node); return obs.disconnect.bind(obs);