decord/source/stores/MaskedLinkStoreMethodsAdditional.native.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

29 lines
640 B
TypeScript

// Module ID: 8303
// Function ID: 8304
// Name: getHostname
// Dependencies: [2]
// Exports: getHostname, getProtocol
// Module 8303 (getHostname)
import set from "set" /* 2 */;
const result = set.fileFinishedImporting("stores/MaskedLinkStoreMethodsAdditional.native.tsx");
export const getHostname = function getHostname(arg0) {
try {
const _URL = URL;
const uRL = new URL(arg0);
return uRL.hostname;
} catch (err) {
return "";
}
};
export const getProtocol = function getProtocol(url) {
try {
const _URL = URL;
const uRL = new URL(url);
return uRL.protocol;
} catch (err) {
return "";
}
};