(minor) ws

This commit is contained in:
Alexis Sellier
2011-05-11 14:33:55 -04:00
parent 6ab8d9c2e6
commit 4463e52227

View File

@@ -124,7 +124,7 @@ function loadStyleSheet(sheet, callback, reload, remaining) {
// Stylesheets in IE don't always return the full path
if (! /^(https?|file):/.test(href)) {
if (href.charAt(0) == "/") {
href = window.location.protocol + "//" + window.location.host + href;
href = window.location.protocol + "//" + window.location.host + href;
} else {
href = url.slice(0, url.lastIndexOf('/') + 1) + href;
}