Skip to content

Commit 2f57bfe

Browse files
committed
spent the last 4 hours trying to figure out why extensions were not working
1 parent cabe771 commit 2f57bfe

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/containers/tw-security-manager.jsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import SecurityManagerModal from '../components/tw-security-manager-modal/securi
77
import SecurityModals from '../lib/tw-security-manager-constants';
88
import {getPersistedUnsandboxed, setPersistedUnsandboxed} from '../lib/tw-persisted-unsandboxed.js';
99

10+
11+
import {API_HOST} from '../lib/brand.js';
1012
/* eslint-disable require-atomic-updates */
1113

1214
/**
@@ -28,8 +30,7 @@ const isTrustedExtension = url => (
2830
url.startsWith('https://extensions.turbowarp.org/') ||
2931

3032
url.startsWith('https://codetorch.net/') ||
31-
// For development.
32-
url.startsWith('http://localhost/') ||
33+
url.startsWith(API_HOST) ||
3334
// For development.
3435
url.startsWith('http://localhost:8000/') ||
3536

0 commit comments

Comments
 (0)