add toolbar autohide

This commit is contained in:
James Feng Cao 2023-06-28 18:28:29 +08:00
parent 2c2f15bfa9
commit ef45cb87c9
8 changed files with 12 additions and 12 deletions

View file

@ -10,10 +10,7 @@ export default {
async function goUrl(request, url) {
let fp = {
method: request.method,
headers: request.headers
};
fp.headers = new Headers(request.headers);
for(var i = 2; i < arguments.length-1; i=i+2){
fp.headers[arguments[i]] = arguments[i+1];
}
return await fetch(url, fp);
}

View file

@ -85,5 +85,6 @@ body>ul{padding-left:0;}
<a href="javascript:g('i:29')">Web font size (default:16)</a> <br/>
<a href="javascript:g('i:2a')">History size (Integer, default:0 Unit:Kb, such as 90)</a> <br/>
<a href="javascript:g('i:2b')">Maximal lines for addressbar (default:2, <34)</a> <br/>
<a href="javascript:g('i:2c')">Auto hide toolbar (default: 0, no hide. Max value: 7. 4 seconds increment)</a> <br/>
</div><br/>
</body></html>