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 · stevedw/developer.github.com · GitHub
stevedw
/
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
18 lines (18 loc) · 847 Bytes
Breadcrumbs
developer.github.com
/
assets
/
javascripts
/
initial.js
Copy path
File metadata and controls
18 lines (18 loc) · 847 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// before anything happens, check if this is a versionless enterprise URL
path
=
window
.
location
.
pathname
;
hash
=
window
.
location
.
hash
;
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
;
}
if
(
path
==
"/v3/repos/"
&&
hash
==
"#enabling-and-disabling-branch-protection"
)
{
window
.
location
.
href
=
"/v3/repos/branches/#get-branch-protection"
;
}
if
(
path
==
"/v3/repos/"
&&
hash
==
"#list-branches"
)
{
window
.
location
.
href
=
"/v3/repos/branches/#list-branches"
;
}
if
(
path
==
"/v3/repos/"
&&
hash
==
"#get-branch"
)
{
window
.
location
.
href
=
"/v3/repos/branches/#get-branch"
;
}
Back
|
FazBrowse Home
|
New Git URL