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

34 lines
783 B
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 8494
// Function ID: 8495
// Name: MaskedLinkStoreMethodsAdditional
// Dependencies: [2]
// Exports: getHostname, getProtocol
2026-10-12 16:32:48 +00:00
// Module 8494 (MaskedLinkStoreMethodsAdditional)
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("stores/MaskedLinkStoreMethodsAdditional.native.tsx");
export const getHostname = function getHostname(arg0) {
try {
const _URL = URL;
2026-10-01 14:13:23 +00:00
const self = this;
const self2 = this;
const uRL = new URL(arg0);
return uRL.hostname;
} catch (err) {
return "";
}
};
export const getProtocol = function getProtocol(url) {
try {
const _URL = URL;
2026-10-01 14:13:23 +00:00
const self = this;
const self2 = this;
const uRL = new URL(url);
return uRL.protocol;
} catch (err) {
return "";
}
};