Tweak chrome extentions for .local.jh domans

This commit is contained in:
Jonathan Hodgson 2018-10-24 17:37:13 +01:00
parent 4be5150340
commit fb3fb570c8
2 changed files with 2 additions and 4 deletions

View file

@ -1,6 +1,4 @@
console.log( "yay" );
if(window.location.host.indexOf(".local.jh") == -1){
console.log( "I get here" );
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://dotjs.local.jh/' + window.location.host.replace(/^www\./, '') + '.js');