oddbird / popover-polyfill

Polyfills the HTML popover attribute and showPopover/hidePopover/togglePopover methods onto HTMLElement, as well as the popovertarget and popovertargetaction attributes on <button> elements.
BSD 3-Clause "New" or "Revised" License
247 stars 14 forks source link

Do not error if `window` is undefined #201

Closed jgerigmeyer closed 4 months ago

jgerigmeyer commented 4 months ago

Better support for SSR environments by internally checking for typeof window === 'undefined' before applying polyfill.

Addresses https://github.com/oddbird/popover-polyfill/issues/192#issuecomment-2033194487

netlify[bot] commented 4 months ago

Deploy Preview for popover-polyfill ready!

Name Link
Latest commit e839234df52be8ece7e3d9460c538c649f15171c
Latest deploy log https://app.netlify.com/sites/popover-polyfill/deploys/662bbde9de480e00084119cd
Deploy Preview https://deploy-preview-201--popover-polyfill.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.