Skip to content

Commit 710937b

Browse files
parthmodi152claude
andcommitted
Fix sandbox_proxy.html path for packaged Electron app
Use window.location.href instead of window.location.origin so the URL resolves relative to index.html inside the asar. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 36f40ae commit 710937b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/renderer/src/components/MessageBubble.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { code } from '@streamdown/code'
1414
import 'streamdown/styles.css'
1515

1616
const streamdownPlugins = { code }
17-
const sandboxConfig = { url: new URL('/sandbox_proxy.html', window.location.origin) }
17+
const sandboxConfig = { url: new URL('./sandbox_proxy.html', window.location.href) }
1818

1919
type MessageBubbleProps = {
2020
message: UIMessage

app/src/renderer/src/pages/AppsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type AppEntry = {
1212
name: string
1313
}
1414

15-
const sandboxConfig = { url: new URL('/sandbox_proxy.html', window.location.origin) }
15+
const sandboxConfig = { url: new URL('./sandbox_proxy.html', window.location.href) }
1616

1717
export default memo(function AppsPage() {
1818
const [apps, setApps] = useState<AppEntry[]>([])

0 commit comments

Comments
 (0)