Update env_maker.js

This commit is contained in:
cilame 2021-11-19 10:34:32 +08:00 committed by GitHub
parent 9726de8eb8
commit ae431db4aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -317,7 +317,7 @@ var _m = function(){try{
var linfo = Error() var linfo = Error()
var line = linfo.stack.split('\\n')[4] var line = linfo.stack.split('\\n')[4]
var lines = /([^\\(\\) ]+):\\d+:\\d+/.exec(line) var lines = /([^\\(\\) ]+):\\d+:\\d+/.exec(line)
var line = lines?line.replace(lines[0], lines[0].replace(lines[1], encodeURI('file:///' + lines[1].replace(/\\\\/g, '/')))):'' var line = lines?line.replace(lines[0], lines[0].replace(lines[1], v_encodeURI('file:///' + lines[1].replace(/\\\\/g, '/')))):''
}else{ }else{
var line = '' var line = ''
} }
@ -2100,8 +2100,8 @@ window[_y].v_getlist = []
window[_y].v_getele = function(a,b,c,d,e){ window[_y].v_getele = function(a,b,c,d,e){
a = a.toLowerCase() a = a.toLowerCase()
// 定制处理 // 定制处理
for (var i = 0; i < window.v_getlist.length; i++) { for (var i = 0; i < window[_y].v_getlist.length; i++) {
var t = window.v_getlist[i] var t = window[_y].v_getlist[i]
if (t[0] == a){ if (t[0] == a){
return t[1](a) return t[1](a)
} }
@ -2119,8 +2119,8 @@ window[_y].v_getele = function(a,b,c,d,e){
window[_y].v_getlists = [] window[_y].v_getlists = []
window[_y].v_geteles = function(a,b,c,d,e){ window[_y].v_geteles = function(a,b,c,d,e){
a = a.toLowerCase() a = a.toLowerCase()
for (var i = 0; i < window.v_getlists.length; i++) { for (var i = 0; i < window[_y].v_getlists.length; i++) {
var t = window.v_getlists[i] var t = window[_y].v_getlists[i]
if (t[0] == a){ if (t[0] == a){
return t[1](a) return t[1](a)
} }
@ -2172,7 +2172,7 @@ window = cilame(this)
// 注入全局,方便后面搞成库直接用 require 就能拿到内容。 // 注入全局,方便后面搞成库直接用 require 就能拿到内容。
window.v_getlist = window[_y].v_getlist window.v_getlist = window[_y].v_getlist
window.v_getlists = window[_y].v_getlist window.v_getlists = window[_y].v_getlists
window.v_requests = { window.v_requests = {
'xmllist': window[_y].XMLHttpRequestList, 'xmllist': window[_y].XMLHttpRequestList,
'xmlsend': window[_y].XMLHttpRequestListSend, 'xmlsend': window[_y].XMLHttpRequestListSend,
@ -2201,4 +2201,4 @@ v_ret = v_ret + v_tail
// console.log(v_ret) // console.log(v_ret)
copy(v_ret) copy(v_ret)
} }