Wire up logger
Summary: Splitting this up into the wiring and the actual usage. This just ensures we have a logger in place for handling deeplinks. Reviewed By: mweststrate Differential Revision: D31337457 fbshipit-source-id: b088a7396e38554a87502ba7d5669dbef1b398d7
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4aa7439fbf
commit
7dd9cce9f2
@@ -21,7 +21,7 @@ import {tryCatchReportPlatformFailures} from '../utils/metrics';
|
||||
import {handleDeeplink} from '../deeplink';
|
||||
import {Dialog} from 'flipper-plugin';
|
||||
|
||||
export default (store: Store, _logger: Logger) => {
|
||||
export default (store: Store, logger: Logger) => {
|
||||
const currentWindow = remote.getCurrentWindow();
|
||||
const onFocus = () => {
|
||||
setImmediate(() => {
|
||||
@@ -59,7 +59,7 @@ export default (store: Store, _logger: Logger) => {
|
||||
ipcRenderer.on(
|
||||
'flipper-protocol-handler',
|
||||
(_event: IpcRendererEvent, query: string) => {
|
||||
handleDeeplink(store, query).catch((e) => {
|
||||
handleDeeplink(store, logger, query).catch((e) => {
|
||||
console.warn('Failed to handle deeplink', query, e);
|
||||
Dialog.alert({
|
||||
title: 'Failed to open deeplink',
|
||||
|
||||
Reference in New Issue
Block a user