mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
fix config.js completely
This commit is contained in:
parent
032723db19
commit
2704b2f1cc
2 changed files with 14 additions and 6 deletions
|
@ -38,7 +38,13 @@ function gen(text) {
|
|||
}
|
||||
|
||||
if(d.body){
|
||||
gen(d.body.innerHTML);
|
||||
var r=new XMLHttpRequest;
|
||||
r.onload=function(){
|
||||
var t=r.responseText;
|
||||
gen(t);
|
||||
}
|
||||
r.open("GET",location.href,!0);
|
||||
r.send(null);
|
||||
}else {
|
||||
let text = "\n".repeat(labels.length-1);
|
||||
gen(text);
|
||||
|
|
|
@ -38,11 +38,13 @@ function gen(text) {
|
|||
}
|
||||
|
||||
if(d.body){
|
||||
fetch(location.href)
|
||||
.then(res => res.text())
|
||||
.then(text => {
|
||||
gen(text);
|
||||
});
|
||||
var r=new XMLHttpRequest;
|
||||
r.onload=function(){
|
||||
var t=r.responseText;
|
||||
gen(t);
|
||||
}
|
||||
r.open("GET",location.href,!0);
|
||||
r.send(null);
|
||||
}else {
|
||||
let text = "\n".repeat(labels.length-1);
|
||||
gen(text);
|
||||
|
|
Loading…
Reference in a new issue