Small changes

This commit is contained in:
Jonathan Hodgson 2017-08-14 17:01:01 +01:00
parent d128ee7bd2
commit cd024a9912
3 changed files with 55 additions and 51 deletions

View file

@ -1,3 +1,4 @@
if(window.location.host.indexOf(".local") == -1){
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://dotcss.local/' + window.location.host.replace(/^www\./, '') + '.css'); xhr.open('GET', 'https://dotcss.local/' + window.location.host.replace(/^www\./, '') + '.css');
@ -25,3 +26,4 @@ xhr.onreadystatechange = function() {
}; };
xhr.send(); xhr.send();
}

View file

@ -1,3 +1,4 @@
if(window.location.host.indexOf(".local") != -1){
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://dotjs.local/' + window.location.host.replace(/^www\./, '') + '.js'); xhr.open('GET', 'https://dotjs.local/' + window.location.host.replace(/^www\./, '') + '.js');
@ -25,3 +26,4 @@ xhr.onreadystatechange = function() {
}; };
xhr.send(); xhr.send();
}