Skip to content

Commit

Permalink
UI.init function
Browse files Browse the repository at this point in the history
  • Loading branch information
hojberg committed Jan 7, 2025
1 parent d4510ca commit 6cbfd0b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/UI/init.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import polyfill from '@oddbird/css-anchor-positioning/fn';

if (!("anchorName" in document.documentElement.style)) {
polyfill();
export function init() {
if (!("anchorName" in document.documentElement.style)) {
console.log("Adding Anchor Positioning polyfill");
polyfill();
}
}

0 comments on commit 6cbfd0b

Please sign in to comment.