Skip to content

Commit 744c182

Browse files
committed
🐛 修复@connect *不生效的问题 #623
(cherry picked from commit 76481c8)
1 parent 298750a commit 744c182

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/service/service_worker/gm_api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ export default class GMApi {
681681
if (request.script.metadata.connect) {
682682
const { connect } = request.script.metadata;
683683
for (let i = 0; i < connect.length; i += 1) {
684-
if (url.hostname.endsWith(connect[i])) {
684+
if (connect[i] === "*" || url.hostname.endsWith(connect[i])) {
685685
return true;
686686
}
687687
}

0 commit comments

Comments
 (0)