decord/stable/source/stores/MaskedLinkStoreMethodsAdditional.native.tsx
2026-10-06 22:12:49 +00:00

33 lines
783 B
TypeScript

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