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

34 lines
783 B
TypeScript
Raw Permalink Normal View History

2026-10-06 22:12:49 +00:00
// Module ID: 7825
// Function ID: 7826
// Name: MaskedLinkStoreMethodsAdditional
// Dependencies: [2]
// Exports: getHostname, getProtocol
2026-10-06 22:12:49 +00:00
// Module 7825 (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-06 22:12:49 +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-06 22:12:49 +00:00
const self = this;
const self2 = this;
const uRL = new URL(url);
return uRL.protocol;
} catch (err) {
return "";
}
};