Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
martenrichter committed Dec 29, 2023
1 parent 0a70916 commit d98b616
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main/lib/webtransport.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ const log = logger(`webtransport:browser(${process?.pid})`)
let serverCertificateHashesNotSupported = false
let webtransportSupported = false

// @ts-ignore
if (globalThis.WebTransport) {
webtransportSupported = true
try {
// @ts-ignore
// eslint-disable-next-line no-undef
const transport = new WebTransport('https://example.org/test', {
serverCertificateHashes: []
Expand Down

0 comments on commit d98b616

Please sign in to comment.