diff --git a/src/features/window-location/common/channel.ts b/src/features/window-location/common/channel.ts index 2ae9e4669c..190658637c 100644 --- a/src/features/window-location/common/channel.ts +++ b/src/features/window-location/common/channel.ts @@ -4,8 +4,7 @@ */ import type { MessageChannel } from "../../../common/utils/channel/message-channel-listener-injection-token"; -import type { Location } from "history"; -export const windowLocationChangedChannel: MessageChannel = { +export const windowLocationChangedChannel: MessageChannel = { id: "window-location-changed", }; diff --git a/src/features/window-location/renderer/emit.injectable.ts b/src/features/window-location/renderer/emit.injectable.ts index e9ce8a2c8d..d70ab9a64a 100644 --- a/src/features/window-location/renderer/emit.injectable.ts +++ b/src/features/window-location/renderer/emit.injectable.ts @@ -14,7 +14,7 @@ const emitWindowLocationChangedInjectable = getInjectable({ instantiate: (di): EmitWindowLocationChanged => { const sendMessageToChannel = di.inject(sendMessageToChannelInjectionToken); - return (location) => sendMessageToChannel(windowLocationChangedChannel, location); + return () => sendMessageToChannel(windowLocationChangedChannel); }, });