Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EricSimons/ionic-course
/ serverBase
Function
serverBase
code/songhop/www/lib/angular/angular.js:10528–10530 ·
view source on GitHub ↗
(url)
Source
from the content-addressed store, hash-verified
10526
10527
/*
return
the server only (scheme:
//host:port) */
10528
function
serverBase(url) {
10529
return
url.substring(0, url.indexOf(
'/'
, url.indexOf(
'//'
) + 2));
10530
}
10531
10532
10533
/**
Callers
1
$LocationProvider
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected