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