Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix media not loading due to trailing slash in homeserver URL #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JadedBlueEyes
Copy link

@JadedBlueEyes JadedBlueEyes commented Nov 25, 2024

This fixes an issue I was having with media not showing up by stripping the trailing slash from the homeserver URL.

It also adds a proxy to deal with possible CORS issues fetching resources in development mode (in my case the bridge discovery).

src/electron.ts Show resolved Hide resolved
forge.config.ts Outdated Show resolved Hide resolved
src/electron.ts Outdated Show resolved Hide resolved
@JadedBlueEyes JadedBlueEyes requested a review from tulir November 25, 2024 17:02
src/electron.ts Show resolved Hide resolved
@JadedBlueEyes JadedBlueEyes changed the title Update dependancies & misc fixes Fix media not loading due to trailing slash in homeserver URL Nov 25, 2024
@JadedBlueEyes
Copy link
Author

JadedBlueEyes commented Nov 25, 2024

Thanks for the quick review - I've stripped it down to the minimal changes.

I reverted my attempt to update dependencies entirely - I'm not particularly familiar with electron's toolchain 😅

@JadedBlueEyes JadedBlueEyes requested a review from tulir December 8, 2024 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants