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