Fix for audio bell.ogg #5931

This commit is contained in:
Andrii Zhovtiak 2022-10-26 11:25:23 +03:00 committed by Eugene
parent 270f273ff1
commit 4ea3e88a8e

View file

@ -301,7 +301,8 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
})
this.bellPlayer = document.createElement('audio')
this.bellPlayer.src = require('../bell.ogg').default
this.bellPlayer.src = require<string>('../bell.ogg')
this.bellPlayer.load()
this.contextMenuProviders.sort((a, b) => a.weight - b.weight)
}