google-labs-jules[bot]
ee0af68bfd
fix: prevent SecurityError in pushState when playing video on local origin
...
When running the application locally (e.g., `127.0.0.1:5500`) but using a production configuration (`BITVID_WEBSITE_URL` pointing to `bitvid.network`), `playVideoByEventId` would attempt to `pushState` with the production URL. This triggers a browser `SecurityError` due to the origin mismatch, preventing the video modal from opening.
This change adds a check to normalize the `pushUrl`. If the target URL's origin differs from the current window's origin, it falls back to a relative path using `window.location.pathname` combined with the target's search parameters and hash. This ensures `pushState` always receives a safe, same-origin URL regardless of the environment configuration.
2026-01-25 02:33:30 +00:00
..
2026-01-19 12:51:34 -05:00
2026-01-24 05:36:40 +00:00
2026-01-24 20:28:53 +00:00
2025-10-15 14:37:25 -04:00
2026-01-23 01:59:57 -05:00
2026-01-24 21:42:37 +00:00
2026-01-24 20:28:53 +00:00
2026-01-24 20:28:53 +00:00
2026-01-24 20:00:00 -05:00
2026-01-24 20:28:53 +00:00
2026-01-24 20:00:00 -05:00
2026-01-24 20:42:50 -05:00
2026-01-24 20:28:53 +00:00
2026-01-23 04:39:18 +00:00
2026-01-23 18:45:36 +00:00
2026-01-25 02:33:30 +00:00
2025-10-03 21:10:22 -04:00
2026-01-24 20:00:00 -05:00
2026-01-07 17:30:22 +00:00
2026-01-21 20:59:11 +00:00
2026-01-19 21:35:23 +00:00
2026-01-24 20:28:53 +00:00
2026-01-24 20:28:53 +00:00
2026-01-19 20:46:47 +00:00
2026-01-22 14:58:35 +00:00
2026-01-24 20:28:53 +00:00
2026-01-24 23:57:29 +00:00
2026-01-24 22:29:18 +00:00
2026-01-22 19:27:40 -05:00
2026-01-21 17:48:01 +00:00
2026-01-24 20:28:53 +00:00
2026-01-23 02:09:08 -05:00
2026-01-23 04:19:40 +00:00
2026-01-23 02:06:38 +00:00
2026-01-24 20:00:00 -05:00
2026-01-23 02:09:08 -05:00
2026-01-24 20:28:53 +00:00
2025-10-04 23:40:51 -04:00
2025-10-02 12:48:24 -04:00
2026-01-23 16:12:42 +00:00
2026-01-18 09:04:12 -05:00
2026-01-24 20:28:53 +00:00
2026-01-24 14:35:59 -05:00
2025-10-15 14:37:25 -04:00
2026-01-07 17:30:22 +00:00
2025-10-22 22:17:30 -04:00
2025-10-22 22:17:30 -04:00
2025-10-15 14:37:25 -04:00
2025-09-24 15:23:24 -04:00
2026-01-23 20:02:15 -05:00
2026-01-12 18:53:22 +00:00
2026-01-19 20:46:47 +00:00
2026-01-24 20:28:53 +00:00
2026-01-25 01:38:41 +00:00
2026-01-23 20:33:06 +00:00
2026-01-19 02:13:59 +00:00
2025-10-01 13:42:50 -04:00
2026-01-18 19:40:58 -05:00
2026-01-24 20:28:53 +00:00
2026-01-21 20:58:50 +00:00
2026-01-24 20:28:53 +00:00
2026-01-19 20:46:47 +00:00
2026-01-24 05:36:40 +00:00
2026-01-19 20:46:47 +00:00
2026-01-09 19:34:39 -05:00
2026-01-23 02:09:08 -05:00
2025-10-15 14:37:25 -04:00
2026-01-21 22:07:23 +00:00
2025-10-15 12:49:46 -04:00
2026-01-24 22:29:18 +00:00
2025-02-05 16:54:40 -05:00
2025-02-05 16:54:40 -05:00