mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
fix config.js chinese version
This commit is contained in:
parent
f308403a3e
commit
a894ae8777
1 changed files with 1 additions and 3 deletions
|
@ -20,9 +20,7 @@ function save(){
|
||||||
inputs.pop();
|
inputs.pop();
|
||||||
inputs.push('<script charset="utf-8" src="https://jamesfengcao.codeberg.page/zh/searchurl/config.js"><\\/script>');
|
inputs.push('<script charset="utf-8" src="https://jamesfengcao.codeberg.page/zh/searchurl/config.js"><\\/script>');
|
||||||
let str = inputs.join('\\n');
|
let str = inputs.join('\\n');
|
||||||
const encoder = new TextEncoder();
|
let url = 'i:b1保存配置%0A%0Ai:8lconfig.html%0Ai:0lconfig.html:'+btoa(str);
|
||||||
const bytes = encoder.encode(str);
|
|
||||||
let url = 'i:b1保存配置%0A%0Ai:8lconfig.html%0Ai:0lconfig.html:'+btoa(bytes);
|
|
||||||
d.location.href=url;
|
d.location.href=url;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue