Skip to content

Commit

Permalink
Merge pull request gzuidhof#21 from mgc8/safari-fix
Browse files Browse the repository at this point in the history
This fixes the "credentialless" vs "request-corp" detection logic to work with Safari
  • Loading branch information
gzuidhof authored Aug 2, 2023
2 parents 6229991 + c0ad78b commit a958aa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coi-serviceworker.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if (typeof window === 'undefined') {
const coi = {
shouldRegister: () => true,
shouldDeregister: () => false,
coepCredentialless: () => !(window.chrome || window.netscape),
coepCredentialless: () => (window.chrome !== undefined || window.netscape !== undefined),
doReload: () => window.location.reload(),
quiet: false,
...window.coi
Expand Down
2 changes: 1 addition & 1 deletion coi-serviceworker.min.js

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

0 comments on commit a958aa6

Please sign in to comment.