@copilotkit/react-core
Version:
<div align="center"> <a href="https://copilotkit.ai" target="_blank"> <img src="https://github.com/copilotkit/copilotkit/raw/main/assets/banner.png" alt="CopilotKit Logo"> </a>
18 lines (17 loc) • 503 B
JavaScript
// src/utils/dev-console.ts
function shouldShowDevConsole(showDevConsole) {
if (typeof showDevConsole === "boolean") {
return showDevConsole;
}
return getHostname() === "localhost" || getHostname() === "127.0.0.1" || getHostname() === "0.0.0.0" || getHostname() === "::1";
}
function getHostname() {
if (typeof window !== "undefined" && window.location) {
return window.location.hostname;
}
return "";
}
export {
shouldShowDevConsole
};
//# sourceMappingURL=chunk-MLAS4QUR.mjs.map