decord/source/stores/MaskedLinkStoreMethodsAdditional.native.tsx

28 lines
619 B
TypeScript
Raw Normal View History

2026-08-14 17:33:39 +00:00
// Module ID: 8998
// Function ID: 8999
2026-07-20 16:05:17 +00:00
// Name: getHostname
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: getHostname, getProtocol
2026-08-14 17:33:39 +00:00
// Module 8998 (getHostname)
2026-07-23 10:11:24 +00:00
const result = require("set").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
};