Tooltips respect left and right content borders

This commit is contained in:
2018-04-18 20:11:20 +02:00
parent bc21b83cff
commit 81d41a9077
5 changed files with 112 additions and 33 deletions

View File

@ -41,6 +41,11 @@ export default class AudioPlayer {
// Play audio file
play(trackId: string, trackUrl: string) {
if(typeof AudioContext === "undefined") {
alert("Your browser doesn't support web audio!")
return
}
if(!this.audioContext) {
this.audioContext = new AudioContext()
this.gainNode = this.audioContext.createGain()