decord/source/stores/MaskedLinkStoreMethodsAdditional.native.tsx

30 lines
689 B
TypeScript
Raw Normal View History

// Module ID: 8491
// Function ID: 8492
// Name: MaskedLinkStoreMethodsAdditional
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: getHostname, getProtocol
// Module 8491 (MaskedLinkStoreMethodsAdditional)
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("stores/MaskedLinkStoreMethodsAdditional.native.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export const getHostname = function getHostname(arg0) {
try {
const _URL = URL;
const uRL = new URL(arg0);
return uRL.hostname;
} catch (err) {
return "";
}
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
export const getProtocol = function getProtocol(url) {
try {
const _URL = URL;
const uRL = new URL(url);
return uRL.protocol;
} catch (err) {
return "";
}
2026-07-20 16:05:17 +00:00
};