Skip to content

Commit

Permalink
check for ServiceWorker (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnumainville authored Jun 5, 2024
1 parent 5229be7 commit 657b497
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ export class DeephavenView extends DOMWidgetView {
if (
source == null ||
source instanceof MessagePort ||
source instanceof ServiceWorker ||
(typeof ServiceWorker !== 'undefined' &&
source instanceof ServiceWorker) ||
source !== this.iframe.contentWindow
) {
log.debug('Ignore message, invalid event source', source);
Expand Down

0 comments on commit 657b497

Please sign in to comment.