fix: icon
This commit is contained in:
+2
-2
@@ -624,11 +624,11 @@ world.beforeEvents.chatSend.subscribe((event) => {
|
|||||||
*/
|
*/
|
||||||
async addIcon() {
|
async addIcon() {
|
||||||
try {
|
try {
|
||||||
const imageUrl = `./pack_icon.jpg`;
|
const imageUrl = `./pack_icon.png`;
|
||||||
const response = await fetch(imageUrl);
|
const response = await fetch(imageUrl);
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
const blob = await response.blob();
|
const blob = await response.blob();
|
||||||
this.zip.file("pack_icon.jpg", blob);
|
this.zip.file("pack_icon.png", blob);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.warn(i18n[currentLang].ERROR_IMAGE_FETCH, error);
|
console.warn(i18n[currentLang].ERROR_IMAGE_FETCH, error);
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 168 KiB |
Reference in New Issue
Block a user