History

Fix IE11 issues

Thibaut Courouble committed 9 years ago

Commit 74d7ad01 parent 214622b2 files · +7 −2Browse files

Showing the changes to assets/javascripts (1 of 2 files). Show all

Unified · Split

assets/javascripts/lib/page.coffee+3−1
@@ -173,7 +173,9 @@ onclick = (event) -> · 172 unmodified lines
173173
174174 if link and not link.target and isSameOrigin(link.href)
175175 event.preventDefault()
176− page.show link.pathname + link.search + link.hash
176+ path = link.pathname + link.search + link.hash
177+ path = path.replace /^\/\/+/, '/' # IE11 bug
178+ page.show(path)
177179 return
178180
179181 isSameOrigin = (url) ->

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t