decord/source/modules/core/UrlHostUtils.tsx
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

25 lines
569 B
TypeScript

// Module ID: 1931
// Function ID: 1932
// Name: UrlHostUtils
// Dependencies: [2]
// Exports: getHostWithoutPort, isLocalhost
// Module 1931 (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) {
let tmp = "localhost" === arg0;
if (!tmp) {
tmp = "127.0.0.1" === arg0;
}
return tmp;
}