Fix build

This commit is contained in:
Lea Verou
2024-12-19 13:01:34 -05:00
parent 8c32538a8b
commit f7d99e58f8

View File

@@ -23,7 +23,7 @@ function isVirtualElement(e: unknown): e is VirtualElement {
);
}
const SUPPORTS_POPOVER = HTMLElement?.prototype.hasOwnProperty('popover');
const SUPPORTS_POPOVER = globalThis?.HTMLElement?.prototype.hasOwnProperty('popover');
/**
* @summary Popup is a utility that lets you declaratively anchor "popup" containers to another element.