|
|
|
@ -1,7 +1,8 @@ |
|
|
|
|
var xhr = new XMLHttpRequest(); |
|
|
|
|
xhr.open('GET', 'https://dotcss.local/' + window.location.host.replace(/^www\./, '') + '.css'); |
|
|
|
|
if(window.location.host.indexOf(".local") == -1){ |
|
|
|
|
var xhr = new XMLHttpRequest(); |
|
|
|
|
xhr.open('GET', 'https://dotcss.local/' + window.location.host.replace(/^www\./, '') + '.css'); |
|
|
|
|
|
|
|
|
|
xhr.onreadystatechange = function() { |
|
|
|
|
xhr.onreadystatechange = function() { |
|
|
|
|
if(xhr.readyState == 4) { |
|
|
|
|
if(xhr.status == 200) { |
|
|
|
|
var style = document.createElement('style'); |
|
|
|
@ -22,6 +23,7 @@ xhr.onreadystatechange = function() { |
|
|
|
|
defaultXHR.send(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
xhr.send(); |
|
|
|
|
xhr.send(); |
|
|
|
|
} |
|
|
|
|