Skip to content

Commit

Permalink
refactor: update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
zhensherlock committed May 1, 2023
1 parent 5db7226 commit 6a944ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/webRTCStreamer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MediaConstraints, WebRTCStreamerOptions } from '../types'
import { initialOptions } from '../utils/initialization'
import { initialWebRTCStreamerOptions } from '../utils/initialization'

/**
* Interface with WebRTC-streamer API
Expand All @@ -20,7 +20,7 @@ class WebRTCStreamer {
* @param args
*/
constructor (args: Partial<WebRTCStreamerOptions> = {}) {
this.options = Object.assign({}, initialOptions, args)
this.options = Object.assign({}, initialWebRTCStreamerOptions, args)
if (!this.options.url) {
this.options.url = `${window.location.protocol}//${window.location.hostname}:${window.location.port}`
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/initialization.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { WebRTCStreamerOptions } from '../types'

export const initialOptions: WebRTCStreamerOptions = {
export const initialWebRTCStreamerOptions: WebRTCStreamerOptions = {
element: '',
url: ''
}

0 comments on commit 6a944ce

Please sign in to comment.