@trilitech-umami/umami-embed
Version:
[WIP - not ready for production use] A simple embeddable Umami wallet
11 lines (10 loc) • 438 B
JavaScript
const UMAMI_EMBED_URL = "https://umami-embed-iframe.vercel.app";
const GHOSTNET_UMAMI_EMBED_URL = "https://umami-embed-iframe-ghostnet.vercel.app";
const LOCAL_UMAMI_EMBED_URL = "http://localhost:5173";
export const getIframeUrl = (useLocalEmbedIframe, network) => {
if (useLocalEmbedIframe)
return LOCAL_UMAMI_EMBED_URL;
if (network === "ghostnet")
return GHOSTNET_UMAMI_EMBED_URL;
return UMAMI_EMBED_URL;
};