decord/beta/source/modules/core/UrlHostUtils.tsx
2026-10-07 22:43:51 +00:00

21 lines
526 B
TypeScript

// Module ID: 2023
// Function ID: 2024
// Name: UrlHostUtils
// Dependencies: [2]
// Exports: getHostWithoutPort, isLocalhost
// Module 2023 (UrlHostUtils)
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/core/UrlHostUtils.tsx");
export const getHostWithoutPort = function getHostWithoutPort(arg0) {
let first;
if (arg0 != null) {
first = arg0.split(":")[0];
}
return first;
};
export function isLocalhost(arg0) {
return "localhost" === arg0 || "127.0.0.1" === arg0;
}