29 lines
640 B
TypeScript
29 lines
640 B
TypeScript
// Module ID: 8575
|
|
// Function ID: 8576
|
|
// Name: getHostname
|
|
// Dependencies: [2]
|
|
// Exports: getHostname, getProtocol
|
|
|
|
// Module 8575 (getHostname)
|
|
import set from "set" /* 2 */;
|
|
|
|
const result = set.fileFinishedImporting("stores/MaskedLinkStoreMethodsAdditional.native.tsx");
|
|
|
|
export const getHostname = function getHostname(arg0) {
|
|
try {
|
|
const _URL = URL;
|
|
const uRL = new URL(arg0);
|
|
return uRL.hostname;
|
|
} catch (err) {
|
|
return "";
|
|
}
|
|
};
|
|
export const getProtocol = function getProtocol(url) {
|
|
try {
|
|
const _URL = URL;
|
|
const uRL = new URL(url);
|
|
return uRL.protocol;
|
|
} catch (err) {
|
|
return "";
|
|
}
|
|
};
|