Skip to content

Commit

Permalink
Partially reverted 7e9cf13 (mattermost#5295)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmhealey authored and crspeller committed Feb 3, 2017
1 parent 027d91d commit 33228b0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
7 changes: 0 additions & 7 deletions client/test_web_client.jsx

This file was deleted.

4 changes: 2 additions & 2 deletions stores/emoji_store.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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];
Expand Down
1 change: 0 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 33228b0

Please sign in to comment.