Skip to content

Commit

Permalink
Merge pull request #76 from keithamus/add-invokers-polyfill
Browse files Browse the repository at this point in the history
add invokers polyfill
  • Loading branch information
keithamus authored Feb 25, 2025
2 parents 3ed07a5 + 0461cc6 commit 1794ce2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
14 changes: 14 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,20 @@ <h1>GitHub Feature Support Table</h1>
<td data-supported="true"><div>117+</div></td>
<td data-supported="true"><div>*</div></td>
</tr>
<tr>
<th>
<a href="https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API">
<code>command & commandfor</code>
</a>
</th>
<td data-polyfill="commandAndCommandFor"><div>*</div></td>
<td data-supported="true"><div>135+</div></td>
<td data-supported="false"><div>*</div></td>
<td data-supported="false"><div>*</div></td>
<td data-supported="false"><div>*</div></td>
<td data-supported="false"><div>*</div></td>
<td data-supported="false"><div>*</div></td>
</tr>
<tr>
<th></th>
<th colspan="7"><h3>Native Syntax</h3></th>
Expand Down
9 changes: 8 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
},
"dependencies": {
"@oddbird/popover-polyfill": "^0.5.2",
"dialog-toggle-events-polyfill": "^1.1.2"
"dialog-toggle-events-polyfill": "^1.1.2",
"invokers-polyfill": "^0.5.2"
}
}
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import * as withResolvers from './promise-withResolvers.js'
import * as requestIdleCallback from './requestidlecallback.js'
import * as popover from '@oddbird/popover-polyfill/fn'
import * as dialogToggleEvents from 'dialog-toggle-events-polyfill/fn'
import * as commandAndCommandFor from 'invokers-polyfill/fn'

let supportsModalPseudo = false
try {
Expand Down Expand Up @@ -53,6 +54,7 @@ export const polyfills = {
withResolvers,
popover,
dialogToggleEvents,
commandAndCommandFor,
}

export function isSupported() {
Expand Down

0 comments on commit 1794ce2

Please sign in to comment.