mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 11:04:15 +00:00
expose methods to window
This commit is contained in:
parent
a5c6ad9947
commit
44a10d358f
@ -31,6 +31,11 @@ export default class StreamViewer extends React.Component {
|
||||
videoPlayerRef = React.createRef()
|
||||
|
||||
componentDidMount = async () => {
|
||||
window.StreamViewer = {
|
||||
updateQuality: this.updateQuality,
|
||||
switchProtocol: this.switchProtocol,
|
||||
}
|
||||
|
||||
const query = new URLSearchParams(window.location.search)
|
||||
const requestedUsername = query.get("key")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user