Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/candy-chat/candy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSudrien <_+github@sudrien.net>2015-02-13 07:03:23 +0300
committerSudrien <_+github@sudrien.net>2015-02-13 07:03:23 +0300
commitcdd223dd88c4b2d681959e206daff6e4b228c44e (patch)
treeb20bb5f94ec2f724d3d2e83bb0387f598e8fb002
parent02e34d2abb3ad7a4557feedbf40625e33407b141 (diff)
whitespace fixes
-rw-r--r--src/view/pane/chat.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/view/pane/chat.js b/src/view/pane/chat.js
index 5173edb..63f7908 100644
--- a/src/view/pane/chat.js
+++ b/src/view/pane/chat.js
@@ -293,20 +293,20 @@ Candy.View.Pane = (function(self, $) {
e.stopPropagation();
});
$('#chat-autoscroll-control').click(self.Chat.Toolbar.onAutoscrollControlClick);
- try {
- if( !!document.createElement('audio').canPlayType ) {
- var a = document.createElement('audio');
- if( !!(a.canPlayType('audio/mpeg;').replace(/no/, '')) ) {
- self.Chat.Toolbar._supportsNativeAudio = "mp3";
- }
- else if( !!(a.canPlayType('audio/ogg; codecs="vorbis"').replace(/no/, '')) ) {
- self.Chat.Toolbar._supportsNativeAudio = "ogg";
- }
- else if ( !!(a.canPlayType('audio/mp4; codecs="mp4a.40.2"').replace(/no/, '')) ) {
- self.Chat.Toolbar._supportsNativeAudio = "m4a";
- }
- }
- } catch(e){ }
+ try {
+ if( !!document.createElement('audio').canPlayType ) {
+ var a = document.createElement('audio');
+ if( !!(a.canPlayType('audio/mpeg;').replace(/no/, '')) ) {
+ self.Chat.Toolbar._supportsNativeAudio = "mp3";
+ }
+ else if( !!(a.canPlayType('audio/ogg; codecs="vorbis"').replace(/no/, '')) ) {
+ self.Chat.Toolbar._supportsNativeAudio = "ogg";
+ }
+ else if ( !!(a.canPlayType('audio/mp4; codecs="mp4a.40.2"').replace(/no/, '')) ) {
+ self.Chat.Toolbar._supportsNativeAudio = "m4a";
+ }
+ }
+ } catch(e){ }
$('#chat-sound-control').click(self.Chat.Toolbar.onSoundControlClick);
if(Candy.Util.cookieExists('candy-nosound')) {
$('#chat-sound-control').click();
@@ -357,7 +357,7 @@ Candy.View.Pane = (function(self, $) {
/** Function: onPlaySound
* Sound play event handler. Uses native (HTML5) audio if supported,
- * otherwise it will attempt to use bgsound with autostart.
+ * otherwise it will attempt to use bgsound with autostart.
*
* Don't call this method directly. Call `playSound()` instead.
* `playSound()` will only call this method if sound is enabled.