MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / getUrlPath

Function getUrlPath

devtools/modules/utils.js:85–92  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

83}
84
85export function getUrlPath(url) {
86 try {
87 const u = new URL(url);
88 return u.pathname + u.search;
89 } catch (e) {
90 return url;
91 }
92}
93
94export function getRequestType(source) {
95 if (!source) return 'unknown';

Callers 2

showStatisticsModalFunction · 0.90
renderConnectionListFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected