Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

Commit

Permalink
fix(docs): correct base url in ie #106
Browse files Browse the repository at this point in the history
  • Loading branch information
m7r committed Sep 9, 2014
1 parent 33a7619 commit fb8af0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/index.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
(function() {
var indexFile = (location.pathname.match(/\/(index[^\.]*\.html)/) || ['', ''])[1],
rUrl = /(#!\/|<%= sections %>|index[^\.]*\.html).*$/,
origin = location.origin,
origin = location.origin || (window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '')),
baseUrl = origin + location.href.substr(origin.length).replace(rUrl, indexFile),
headEl = document.getElementsByTagName('head')[0],
sync = true;
Expand Down

0 comments on commit fb8af0f

Please sign in to comment.