Add dummy implementations for requesting in main from renderer

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen committed 2023-03-21 09:28:22 +02:00
1 parent 94cdf84712
commit 2a4fc4f20f
2 files changed
+39

No files matched your search

@@ -0,0 +1,18 @@
/* c8 ignore start */
import { getInjectable } from "@ogre-tools/injectable";
import { enlistRequestChannelListenerInjectionToken } from "@k8slens/messaging";
const enlistRequestChannelListenerInjectable = getInjectable({
id: "enlist-request-channel-listener-for-renderer",
instantiate: () => (listener) => {
throw new Error(
`Tried to enlist request channel "${listener.channel.id}" in "renderer", but requesting it's not supported yet.`,
);
},
injectionToken: enlistRequestChannelListenerInjectionToken,
});
export default enlistRequestChannelListenerInjectable;
/* c8 ignore end */