Updating some client deps + eslint
Этот коммит содержится в:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user