mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Partially reverted 7e9cf13aa3 (#5295)
This commit is contained in:
committed by
Christopher Speller
parent
9312469ad5
commit
948b557453
@@ -1,7 +0,0 @@
|
||||
// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
import Client from './client.jsx';
|
||||
|
||||
var WebClient = new Client();
|
||||
export default WebClient;
|
||||
@@ -1,7 +1,6 @@
|
||||
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
import Client from '../client/web_client.jsx';
|
||||
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
|
||||
import Constants from 'utils/constants.jsx';
|
||||
import EventEmitter from 'events';
|
||||
@@ -149,7 +148,8 @@ class EmojiStore extends EventEmitter {
|
||||
|
||||
getEmojiImageUrl(emoji) {
|
||||
if (emoji.id) {
|
||||
return Client.getCustomEmojiImageUrl(emoji.id);
|
||||
// must match Client.getCustomEmojiImageUrl
|
||||
return `/api/v3/emoji/${emoji.id}`;
|
||||
}
|
||||
|
||||
const filename = emoji.filename || emoji.aliases[0];
|
||||
|
||||
@@ -159,7 +159,6 @@ if (TEST) {
|
||||
config.entry = ['babel-polyfill', './root.jsx'];
|
||||
config.target = 'node';
|
||||
config.externals = [nodeExternals()];
|
||||
config.resolve.alias['./client/web_client.jsx'] = path.resolve(__dirname, 'client/test_web_client.jsx');
|
||||
} else {
|
||||
// For some reason these break mocha. So they go here.
|
||||
config.plugins.push(
|
||||
|
||||
Reference in New Issue
Block a user