owncast/web/components/stores
Patrick Bollinger d42a705d33 Stop Firefox from adding mysterious hash (#3348)
This resolves https://github.com/owncast/owncast/issues/3240

From the comments:
This was trickier than expected, but the root of the problem is Firefox will set `#` in the URL bar when `window.location.hash` is set to _any_ string, even a blank string. The morale of the story is, don't mutate base data if you just want to copy values. 😅

Sample of Firefox JavaScript console session that demonstrates the issue:
```javascript
>> window.location.href
"https://github.com/owncast/owncast/issues/3240"

>> const setBlankHash = () => { window.location.hash = ''; };
undefined

>> window.location.hash
""

>> window.location.href
"https://github.com/owncast/owncast/issues/3240"

>> setBlankHash()
undefined

>> // My browser just jumped to the top of the page
undefined

>> window.location.hash
""

>> window.location.href
"https://github.com/owncast/owncast/issues/3240#"
```
2023-10-26 13:14:28 -07:00
..
eventhandlers Chat popup (#3098) 2023-06-26 09:00:27 -07:00
application-state.ts Banned and chat disconnected states will hide chat. Closes #2764 2023-03-13 15:25:05 -07:00
ClientConfigStore.tsx Stop Firefox from adding mysterious hash (#3348) 2023-10-26 13:14:28 -07:00