Skip to content

Commit

Permalink
ui: tell people to download Safari Technical Preview
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkaufman committed Feb 14, 2021
1 parent 45c8e81 commit 0893151
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -996,11 +996,20 @@ <h3>Something else weird is going on</h3>

<div id=noAudioWorklet class=middlePane>
<div>

<p>
It looks like you're not using Chrome or Firefox. Unfortunately,
this doesn't yet work in other browsers because they don't have AudioWorklet.
</p>

<p>
<div id=macOsSafariOfferTP>
If you're on macOS and using Safari is important to you, you can
download <a
href="https://developer.apple.com/safari/download/">Safari
Technology Preview</a>, which does include AudioWorklet.
</div>

<p>
While we don't recommend trying to continue anyway, because it will
probably fail silently and just be frustrating for you, if you want
you can continue:
Expand All @@ -1012,9 +1021,11 @@ <h3>Something else weird is going on</h3>
<div id=isMobile class=middlePane>
<div>

<p>
It looks like you are on a mobile browser. This is not recommended:
we haven't found any mobile devices that are able to keep up with
the strain of encoding and decoding audio in JavaScript.
</p>

<p>

Expand Down Expand Up @@ -1400,8 +1411,12 @@ <h2>Then refresh the page and try again.</h2>
} else {
showingWarningPane = false;
}
} else {
window.macOsSafariOfferTP.style.display =
navigator.userAgent.includes("Mac OS X") ? "block" : "none";
}


const middlePanes = {
"Main": window.middle,
"Debug": window.debugInfo,
Expand Down

0 comments on commit 0893151

Please sign in to comment.