Import log instead of using it off of window
This commit is contained in:
parent
8eb0dd3116
commit
65ddf0a9e8
155 changed files with 3654 additions and 3433 deletions
|
@ -29,6 +29,7 @@ import {
|
|||
} from './conversations';
|
||||
|
||||
import { BodyRangeType } from '../../types/Util';
|
||||
import * as log from '../../logging/log';
|
||||
|
||||
export const getSearch = (state: StateType): SearchStateType => state.search;
|
||||
|
||||
|
@ -187,7 +188,7 @@ export const getMessageSearchResultSelector = createSelector(
|
|||
return (id: string) => {
|
||||
const message = messageSearchResultLookup[id];
|
||||
if (!message) {
|
||||
window.log.warn(
|
||||
log.warn(
|
||||
`getMessageSearchResultSelector: messageSearchResultLookup was missing id ${id}`
|
||||
);
|
||||
return undefined;
|
||||
|
@ -207,9 +208,7 @@ export const getMessageSearchResultSelector = createSelector(
|
|||
from = conversationSelector(ourConversationId);
|
||||
to = conversationSelector(conversationId);
|
||||
} else {
|
||||
window.log.warn(
|
||||
`getMessageSearchResultSelector: Got unexpected type ${type}`
|
||||
);
|
||||
log.warn(`getMessageSearchResultSelector: Got unexpected type ${type}`);
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue