scripting: add globals.ip variable

This commit is contained in:
bordun 2020-06-06 16:44:18 +02:00
parent 984882e9f6
commit cf56e27c87
4 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,4 @@
window.IP = window.IP || ''
window.ENV = window.ENV || {}
location.search.replace(/[?&]+([^=&]+)=([^&]*)/gi, (s,k,v)=>{
ENV[k]=v