Skip to content

Commit 30afbbe

Browse files
committed
Remove dialog-toggle-events polyfill
1 parent bfc2c49 commit 30afbbe

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

package-lock.json

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

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
},
4848
"dependencies": {
4949
"@oddbird/popover-polyfill": "^0.5.2",
50-
"dialog-toggle-events-polyfill": "^1.1.3",
5150
"invokers-polyfill": "^0.5.2"
5251
}
5352
}

src/index.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import * as navigatorClipboard from './navigator-clipboard.js'
44
import * as withResolvers from './promise-withResolvers.js'
55
import * as requestIdleCallback from './requestidlecallback.js'
66
import * as popover from '@oddbird/popover-polyfill/fn'
7-
import * as dialogToggleEvents from 'dialog-toggle-events-polyfill/fn'
87
import * as commandAndCommandFor from 'invokers-polyfill/fn'
98

109
let supportsModalPseudo = false
@@ -53,12 +52,11 @@ export const polyfills = {
5352
requestIdleCallback,
5453
withResolvers,
5554
popover,
56-
dialogToggleEvents,
5755
commandAndCommandFor,
5856
}
5957

6058
export function isSupported() {
61-
return baseSupport && Object.values(polyfills).every(polyfill => polyfill.isSupported())
59+
return baseSupport
6260
}
6361

6462
export function isPolyfilled() {

0 commit comments

Comments
 (0)