Skip to content

Commit

Permalink
since we're now cross origin isolated, cross origin resources must be…
Browse files Browse the repository at this point in the history
… loaded with crossOrigin=anonymous or be served with CORP header "cross-origin"
  • Loading branch information
ken107 committed Mar 25, 2024
1 parent 4a8fd9a commit ba7f75e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ var defaults = {
highlightWindowSize: 2,
};

var getSingletonAudio = lazy(() => new Audio());
var getSingletonAudio = lazy(() => {
const audio = new Audio()
audio.crossOrigin = "anonymous"
return audio
})
var getSilenceTrack = lazy(() => makeSilenceTrack())

setupDarkMode()
Expand Down

0 comments on commit ba7f75e

Please sign in to comment.