MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / isLocalCpaUrl

Function isLocalCpaUrl

background.js:3310–3318  ·  view source on GitHub ↗
(rawUrl)

Source from the content-addressed store, hash-verified

3308}
3309
3310function isLocalCpaUrl(rawUrl) {
3311 if (typeof navigationUtils !== 'undefined' && navigationUtils?.isLocalCpaUrl) {
3312 return navigationUtils.isLocalCpaUrl(rawUrl);
3313 }
3314 const parsed = parseUrlSafely(rawUrl);
3315 if (!parsed) return false;
3316 if (!['http:', 'https:'].includes(parsed.protocol)) return false;
3317 return ['localhost', '127.0.0.1'].includes(parsed.hostname);
3318}
3319
3320function shouldBypassStep9ForLocalCpa(state) {
3321 if (typeof navigationUtils !== 'undefined' && navigationUtils?.shouldBypassStep9ForLocalCpa) {

Callers 1

Calls 1

parseUrlSafelyFunction · 0.70

Tested by

no test coverage detected