mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-14 15:57:08 +00:00
Merge pull request #768 from bryanbraun/dev
Address an edge-case for "Interrupted" states in Safari.
This commit is contained in:
commit
7c8af8cd99
1 changed files with 1 additions and 1 deletions
|
@ -438,7 +438,7 @@ export class Context extends BaseContext {
|
|||
* to initially start the AudioContext. See [[Tone.start]]
|
||||
*/
|
||||
resume(): Promise<void> {
|
||||
if (this._context.state === "suspended" && isAudioContext(this._context)) {
|
||||
if (isAudioContext(this._context)) {
|
||||
return this._context.resume();
|
||||
} else {
|
||||
return Promise.resolve();
|
||||
|
|
Loading…
Reference in a new issue