From fb8af0fb94bcfc5e71f9c8a0a61ba314d9acd49e Mon Sep 17 00:00:00 2001 From: m7r Date: Tue, 9 Sep 2014 12:11:48 +0200 Subject: [PATCH] fix(docs): correct base url in ie #106 --- src/templates/index.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/index.tmpl b/src/templates/index.tmpl index 5911fe4..85d4193 100644 --- a/src/templates/index.tmpl +++ b/src/templates/index.tmpl @@ -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;