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){
|
||||
fetch("view-source:"+location.href)
|
||||
.then(res => res.text())
|
||||
.then(text => {
|
||||
gen(text);
|
||||
});
|
||||
gen(d.documentElement.outerHTML);
|
||||
}else {
|
||||
let text = "\n".repeat(labels.length-1);
|
||||
gen(text);
|
||||
|
|
Loading…
Reference in a new issue