Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit a73d2fe

Browse files
authored
Fix function reference (#19280)
- Pull string from object for proper reference
1 parent 39e031e commit a73d2fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chromium/background-scripts/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ function onBeforeRequest(details) {
374374
(uri.protocol === 'http:' || uri.protocol === 'ftp:') &&
375375
uri.hostname.slice(-6) !== '.onion' &&
376376
uri.hostname !== 'localhost' &&
377-
!uri.endsWith('.localhost') &&
377+
!uri.hostname.endsWith('.localhost') &&
378378
uri.hostname !== '[::1]' &&
379379
!isLocalIp;
380380

0 commit comments

Comments
 (0)