decord/source/stores/MaskedLinkStoreMethodsAdditional.native.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

29 lines
640 B
TypeScript

// Module ID: 8373
// Function ID: 8374
// Name: getHostname
// Dependencies: [2]
// Exports: getHostname, getProtocol
// Module 8373 (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 "";
}
};