Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
29 lines
689 B
TypeScript
29 lines
689 B
TypeScript
// Module ID: 8005
|
|
// Function ID: 8006
|
|
// Name: MaskedLinkStoreMethodsAdditional
|
|
// Dependencies: [2]
|
|
// Exports: getHostname, getProtocol
|
|
|
|
// Module 8005 (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 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 "";
|
|
}
|
|
};
|