scripting: add globals.ip variable
This commit is contained in:
parent
c60d99b4d6
commit
fae6a6f9a2
4 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
window.IP = window.IP || ''
|
||||
window.ENV = window.ENV || {}
|
||||
location.search.replace(/[?&]+([^=&]+)=([^&]*)/gi, (s,k,v)=>{
|
||||
ENV[k]=v
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue