Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
7ec44d56
Commit
7ec44d56
authored
Apr 25, 2015
by
thierrytiti
Committed by
JC Brand
Apr 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add sounds path
parent
1ba42a0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
converse.js
converse.js
+3
-2
No files found.
converse.js
View file @
7ec44d56
...
...
@@ -262,6 +262,7 @@
message_carbons
:
false
,
no_trimming
:
false
,
// Set to true for phantomjs tests (where browser apparently has no width)
play_sounds
:
false
,
play_sounds_path
:
'
/sounds/
'
,
password
:
undefined
,
authentication
:
'
login
'
,
// Available values are "login", "prebind", "anonymous".
prebind
:
false
,
// XXX: Deprecated, use "authentication" instead.
...
...
@@ -367,11 +368,11 @@
this
.
playNotification
=
function
()
{
var
audio
;
if
(
converse
.
play_sounds
&&
typeof
Audio
!==
"
undefined
"
){
audio
=
new
Audio
(
"
/sounds/
msg_received.ogg
"
);
audio
=
new
Audio
(
converse
.
play_sounds_path
.
"
msg_received.ogg
"
);
if
(
audio
.
canPlayType
(
'
/audio/ogg
'
))
{
audio
.
play
();
}
else
{
audio
=
new
Audio
(
"
/sounds/
msg_received.mp3
"
);
audio
=
new
Audio
(
converse
.
play_sounds_path
.
"
msg_received.mp3
"
);
audio
.
play
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment