fix config.js chinese version

This commit is contained in:
James Feng Cao 2024-03-10 11:25:42 +08:00
parent f308403a3e
commit a894ae8777

View file

@ -20,9 +20,7 @@ function save(){
inputs.pop();
inputs.push('<script charset="utf-8" src="https://jamesfengcao.codeberg.page/zh/searchurl/config.js"><\\/script>');
let str = inputs.join('\\n');
const encoder = new TextEncoder();
const bytes = encoder.encode(str);
let url = 'i:b1保存配置%0A%0Ai:8lconfig.html%0Ai:0lconfig.html:'+btoa(bytes);
let url = 'i:b1保存配置%0A%0Ai:8lconfig.html%0Ai:0lconfig.html:'+btoa(str);
d.location.href=url;
return false;
}