|
@@ -16,7 +16,6 @@ import {
|
16
|
16
|
} from './constants';
|
17
|
17
|
import { preloadImage } from './preloadImage';
|
18
|
18
|
|
19
|
|
-declare var config: Object;
|
20
|
19
|
declare var interfaceConfig: Object;
|
21
|
20
|
|
22
|
21
|
/**
|
|
@@ -299,7 +298,7 @@ export function isEveryoneModerator(stateful: Object | Function) {
|
299
|
298
|
* @returns {boolean}
|
300
|
299
|
*/
|
301
|
300
|
export function isIconUrl(icon: ?string | ?Object) {
|
302
|
|
- return Boolean(icon) && typeof icon === 'object';
|
|
301
|
+ return Boolean(icon) && (typeof icon === 'object' || typeof icon === 'function');
|
303
|
302
|
}
|
304
|
303
|
|
305
|
304
|
/**
|