decord/alpha/source/stores/MaskedLinkStoreMethodsAdditional.native.tsx

34 lines
783 B
TypeScript
Raw Permalink Normal View History

2026-10-12 06:59:38 +00:00
// Module ID: 8494
// Function ID: 8495
// Name: MaskedLinkStoreMethodsAdditional
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: getHostname, getProtocol
2026-10-12 06:59:38 +00:00
// Module 8494 (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;
2026-10-03 08:58:59 +00:00
const self = this;
const self2 = this;
2026-07-29 08:29:29 +00:00
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;
2026-10-03 08:58:59 +00:00
const self = this;
const self2 = this;
2026-07-29 08:29:29 +00:00
const uRL = new URL(url);
return uRL.protocol;
} catch (err) {
return "";
}
2026-07-20 16:05:17 +00:00
};