Skip to content

Commit ff61bda

Browse files
author
DeepChirp
committed
feat(unblock-web-restrictions): 添加本地主机到列表中
1 parent f2c0ebc commit ff61bda

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • apps/unblock-web-restrictions/src

apps/unblock-web-restrictions/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ class Application {
370370
})
371371
if (
372372
location.href.startsWith('https://userjs.rxliuli.com/') ||
373-
location.hostname === '127.0.0.1'
373+
location.hostname === '127.0.0.1' ||
374+
location.hostname === 'localhost'
374375
) {
375376
Reflect.set(
376377
unsafeWindow,

0 commit comments

Comments
 (0)