mirror of
https://github.com/torappinfo/uweb.git
synced 2025-01-15 08:31:00 +01:00
use outerHTML in config.js
This commit is contained in:
parent
13fbe1c9af
commit
1239ef166c
|
@ -38,11 +38,7 @@ function gen(text) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(d.body){
|
if(d.body){
|
||||||
fetch("view-source:"+location.href)
|
gen(d.documentElement.outerHTML);
|
||||||
.then(res => res.text())
|
|
||||||
.then(text => {
|
|
||||||
gen(text);
|
|
||||||
});
|
|
||||||
}else {
|
}else {
|
||||||
let text = "\n".repeat(labels.length-1);
|
let text = "\n".repeat(labels.length-1);
|
||||||
gen(text);
|
gen(text);
|
||||||
|
|
Loading…
Reference in a new issue