modify polyfill.js

This commit is contained in:
lieren2023 2024-04-09 09:10:31 +08:00 committed by GitHub
parent c11bc20d48
commit c1731f5949
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -199,8 +199,7 @@ Reflect.defineProperty(HTMLDivElement.prototype, 'setBackground', {
const sex = nameinfo ? nameinfo[0] : 'male';
this.setBackgroundImage([
src,
`${lib.characterDefaultPicturePath}${sex}${ext}`,
`${lib.characterDefaultPicturePath}male${ext}`
`${lib.characterDefaultPicturePath}${sex}${ext}`
]);
} else {
this.setBackgroundImage(src);