Skip to content

Commit 1794ce2

Browse files
authored
Merge pull request #76 from keithamus/add-invokers-polyfill
add invokers polyfill
2 parents 3ed07a5 + 0461cc6 commit 1794ce2

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

docs/index.html

+14
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,20 @@ <h1>GitHub Feature Support Table</h1>
587587
<td data-supported="true"><div>117+</div></td>
588588
<td data-supported="true"><div>*</div></td>
589589
</tr>
590+
<tr>
591+
<th>
592+
<a href="https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API">
593+
<code>command & commandfor</code>
594+
</a>
595+
</th>
596+
<td data-polyfill="commandAndCommandFor"><div>*</div></td>
597+
<td data-supported="true"><div>135+</div></td>
598+
<td data-supported="false"><div>*</div></td>
599+
<td data-supported="false"><div>*</div></td>
600+
<td data-supported="false"><div>*</div></td>
601+
<td data-supported="false"><div>*</div></td>
602+
<td data-supported="false"><div>*</div></td>
603+
</tr>
590604
<tr>
591605
<th></th>
592606
<th colspan="7"><h3>Native Syntax</h3></th>

package-lock.json

+8-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
},
4848
"dependencies": {
4949
"@oddbird/popover-polyfill": "^0.5.2",
50-
"dialog-toggle-events-polyfill": "^1.1.2"
50+
"dialog-toggle-events-polyfill": "^1.1.2",
51+
"invokers-polyfill": "^0.5.2"
5152
}
5253
}

src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import * as withResolvers from './promise-withResolvers.js'
55
import * as requestIdleCallback from './requestidlecallback.js'
66
import * as popover from '@oddbird/popover-polyfill/fn'
77
import * as dialogToggleEvents from 'dialog-toggle-events-polyfill/fn'
8+
import * as commandAndCommandFor from 'invokers-polyfill/fn'
89

910
let supportsModalPseudo = false
1011
try {
@@ -53,6 +54,7 @@ export const polyfills = {
5354
withResolvers,
5455
popover,
5556
dialogToggleEvents,
57+
commandAndCommandFor,
5658
}
5759

5860
export function isSupported() {

0 commit comments

Comments
 (0)