add localhost to http whitelist

dependabot/npm_and_yarn/minimist-1.2.6
iotcat 4 years ago
parent f8e42a4f2c
commit 2b30af68c0
  1. 2
      dist/ushio-footer.js
  2. 2
      dist/ushio-footer.min.js
  3. 2
      dist/ushio-head.js
  4. 2
      dist/ushio-head.min.js
  5. 2
      dist/ushio-head.min.js.map
  6. 2
      ushio-footer.js
  7. 2
      ushio-head.js

@ -413,6 +413,6 @@ function drawBrand(){
if(!session.status){
session_ajax_ini();
}
console.log('\n' + ' %c Ushio v1.1.3 %c ' + page.ip + ' %c '+ ((session.method == 'WebSocket')?'WebSocket':'Ajax') +' %c https://ushio.xyz \n', 'color: #FFFFCC; background: #030307; padding:5px 0;', 'color: #FF99FF; background: #030307; padding:5px 0;', 'color: '+((session.method == 'WebSocket')?'#91FF3A':'#F8FF00')+'; background: #030307; padding:5px 0;', 'background: #4682B4; padding:5px 0;');
console.log('\n' + ' %c Ushio v2.1.1 %c ' + page.ip + ' %c '+ ((session.method == 'WebSocket')?'WebSocket':'Ajax') +' %c https://ushio.xyz \n', 'color: #FFFFCC; background: #030307; padding:5px 0;', 'color: #FF99FF; background: #030307; padding:5px 0;', 'color: '+((session.method == 'WebSocket')?'#91FF3A':'#F8FF00')+'; background: #030307; padding:5px 0;', 'background: #4682B4; padding:5px 0;');
}

File diff suppressed because one or more lines are too long

@ -55,7 +55,7 @@ if($('[rel="icon"]').length){
/* page reload */
if(window.location.protocol == 'http:'){
if(window.location.protocol == 'http:' && window.location.hostname != 'localhost' && window.location.hostname != '127.0.0.1' ){
window.location.href = window.location.href.replace(/^http/,"https");
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -413,6 +413,6 @@ function drawBrand(){
if(!session.status){
session_ajax_ini();
}
console.log('\n' + ' %c Ushio v1.1.3 %c ' + page.ip + ' %c '+ ((session.method == 'WebSocket')?'WebSocket':'Ajax') +' %c https://ushio.xyz \n', 'color: #FFFFCC; background: #030307; padding:5px 0;', 'color: #FF99FF; background: #030307; padding:5px 0;', 'color: '+((session.method == 'WebSocket')?'#91FF3A':'#F8FF00')+'; background: #030307; padding:5px 0;', 'background: #4682B4; padding:5px 0;');
console.log('\n' + ' %c Ushio v2.1.1 %c ' + page.ip + ' %c '+ ((session.method == 'WebSocket')?'WebSocket':'Ajax') +' %c https://ushio.xyz \n', 'color: #FFFFCC; background: #030307; padding:5px 0;', 'color: #FF99FF; background: #030307; padding:5px 0;', 'color: '+((session.method == 'WebSocket')?'#91FF3A':'#F8FF00')+'; background: #030307; padding:5px 0;', 'background: #4682B4; padding:5px 0;');
}

@ -55,7 +55,7 @@ if($('[rel="icon"]').length){
/* page reload */
if(window.location.protocol == 'http:'){
if(window.location.protocol == 'http:' && window.location.hostname != 'localhost' && window.location.hostname != '127.0.0.1' ){
window.location.href = window.location.href.replace(/^http/,"https");
}

Loading…
Cancel
Save