Skip to content

Commit

Permalink
fixes genshin_impact_background
Browse files Browse the repository at this point in the history
  • Loading branch information
0x24a committed Mar 8, 2024
1 parent 9aecada commit 3679c46
Show file tree
Hide file tree
Showing 158 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
6 changes: 3 additions & 3 deletions plugins/genshin_impact_background/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@
]
}
].map(e => e.list.map(u => ({ ...u, city: e.city }))).flat();
var host = "http://127.0.0.1/plugins/genshin_impact_background/";
var host = "https://plugins.hach.chat/plugins/genshin_impact_background/";
var selected_people = localStorage['_gs_cache_name'] || 'hutao';
var setPeople = (e) => {
setImage(selected_people = e);
Expand Down Expand Up @@ -456,7 +456,7 @@
// console.log('getimage', people);
if (!people.find)
people = people_list[0];
return await ToBase64(`${host}assset/${people.city.name}/${name}${mode == '0' ? '.png' : '.2.png'}`);
return await ToBase64(`${host}asset/${people.city.name}/${name}${mode == '0' ? '.png' : '.2.png'}`);
}
async function getPeopleImage(name, mode) {
let cache = await useCache(name);
Expand Down Expand Up @@ -530,7 +530,7 @@
container_obj = div;

document.body.appendChild(div);
injectSelect('背景图片', people_list.map(e => [e.name, e.title]), (e) => {
injectSelect('Background Image', people_list.map(e => [e.name, e.title]), (e) => {
let val = e.target.value;
setPeople(val);
}, (e) => {
Expand Down

0 comments on commit 3679c46

Please sign in to comment.