mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-12-11 06:57:13 +08:00
fix(sound): Don't play sounds in specs
This commit is contained in:
parent
3b0fc853fb
commit
10e9b62ab8
1 changed files with 1 additions and 0 deletions
|
|
@ -651,6 +651,7 @@ class Atom extends Model
|
|||
@emitter.emit 'did-beep'
|
||||
|
||||
playSound: (filename) ->
|
||||
return if @inSpecMode()
|
||||
{resourcePath} = atom.getLoadSettings()
|
||||
a = new Audio()
|
||||
a.src = path.join(resourcePath, 'static', 'sounds', filename)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue