Skip to content

Commit 9df0cff

Browse files
committed
Fix localhost detection for subdomains
1 parent b77ff3a commit 9df0cff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

data-browser/src/routes/SettingsAgent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function SettingsAgentRoute() {
3737
<Guard>
3838
{agent && (
3939
<>
40-
{agent?.subject?.startsWith('http://localhost') && (
40+
{agent?.subject?.includes('localhost') && (
4141
<p>
4242
<ErrorLook>Warning:</ErrorLook>
4343
{

data-browser/src/views/DrivePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function DrivePage({ resource }: ResourcePageProps): JSX.Element {
5454
</CardRow>
5555
</CardInsideFull>
5656
</Card>
57-
{baseURL.startsWith('http://localhost') && (
57+
{baseURL.includes('localhost') && (
5858
<p>
5959
You are running Atomic-Server on `localhost`, which means that it will
6060
not be available from any other machine than your current local

0 commit comments

Comments
 (0)