修改一处string.contains的调用

This commit is contained in:
shijian 2023-12-30 00:04:42 +08:00
parent d8c9b30957
commit 68c00bea3a
1 changed files with 1 additions and 1 deletions

View File

@ -8447,7 +8447,7 @@ export class Library extends Uninstantable {
gl(str, function (folders, files) {
if (files.length > 1) {
for (let j = 0; j < files.length; j++) {
if (files[i] && files[i].contains && files[i].contains('extension.js')) {
if (typeof files[i] == 'string' && files[i].includes('extension.js')) {
files.splice(j--, 1);
}
else {