FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
developer.github.com/assets/javascripts/initial.js at master · king210876/developer.github.com · GitHub
king210876
/
developer.github.com
Public
forked from
github/developer.github.com
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
developer.github.com
/
assets
/
javascripts
/
initial.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
8 lines (8 loc) · 429 Bytes
Breadcrumbs
developer.github.com
/
assets
/
javascripts
/
initial.js
Copy path
File metadata and controls
8 lines (8 loc) · 429 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
// before anything happens, check if this is a versionless enterprise URL
path
=
window
.
location
.
pathname
;
paths
=
path
.
split
(
"/"
)
;
if
(
paths
[
1
]
==
"enterprise"
&&
(
paths
[
2
]
.
length
===
0
||
isNaN
(
paths
[
2
]
)
)
)
{
paths
.
splice
(
2
,
0
,
String
(
{
{
site
.
version
}
}
)
)
;
suffix
=
window
.
location
.
search
||
window
.
location
.
hash
;
window
.
location
.
href
=
window
.
location
.
protocol
+
"//"
+
window
.
location
.
host
+
paths
.
join
(
"/"
)
+
suffix
;
}
Back
|
FazBrowse Home
|
New Git URL