Skip to content

Commit bdc681b

Browse files
committed
🐛 修复错误的UserConfig会导致脚本无法加载的问题 #483
fixed #483
1 parent 679b38c commit bdc681b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/app/service/service_worker/value.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ export class ValueService {
3939
if (config) {
4040
Object.keys(config).forEach((tabKey) => {
4141
const tab = config![tabKey];
42+
if (!(tab instanceof Object)) {
43+
return;
44+
}
4245
Object.keys(tab).forEach((key) => {
46+
if (!tab[key]) {
47+
return;
48+
}
4349
// 动态变量
4450
if (tab[key].bind) {
4551
const bindKey = tab[key].bind!.substring(1);

0 commit comments

Comments
 (0)