Updating some client deps + eslint

Этот коммит содержится в:
Christopher Speller
2016-02-22 08:31:10 -05:00
родитель 040bff2b9f
Коммит 4c92a1c1e3
90 изменённых файлов: 449 добавлений и 406 удалений

Просмотреть файл

@@ -23,6 +23,7 @@ export function createChannelIntroMessage(channel) {
} else if (channel.type === 'O' || channel.type === 'P') {
return createStandardIntroMessage(channel);
}
return null;
}
export function createDMIntroMessage(channel) {
@@ -46,7 +47,7 @@ export function createDMIntroMessage(channel) {
</div>
<div className='channel-intro-profile'>
<strong>
<UserProfile userId={teammate.id} />
<UserProfile userId={teammate.id}/>
</strong>
</div>
<p className='channel-intro-text'>

Просмотреть файл

@@ -1430,7 +1430,7 @@ export function listIncomingHooks(success, error) {
export function getAllPreferences(success, error) {
$.ajax({
url: `/api/v1/preferences/`,
url: '/api/v1/preferences/',
dataType: 'json',
type: 'GET',
success,

Просмотреть файл

@@ -157,5 +157,5 @@ export function getImagePathForEmoticon(name) {
if (name) {
return `/static/images/emoji/${name}.png`;
}
return `/static/images/emoji`;
return '/static/images/emoji';
}

Просмотреть файл

@@ -142,6 +142,7 @@ export function getCookie(name) {
if (parts.length === 2) {
return parts.pop().split(';').shift();
}
return '';
}
var requestedNotificationPermission = false;
@@ -188,7 +189,10 @@ export function ding() {
var audio = new Audio('/static/images/bing.mp3');
audio.play();
canDing = false;
setTimeout(() => canDing = true, 3000);
setTimeout(() => {
canDing = true;
return;
}, 3000);
}
}