Update hello world
This commit is contained in:
		| @ -154,6 +154,18 @@ function register ({ registerHook, registerSettingsScript, registerClientRoute, | ||||
|       rootEl.innerHTML = 'hello' | ||||
|     } | ||||
|   }) | ||||
|  | ||||
|   // WebSocket | ||||
|  | ||||
|   const baseScheme = window.location.protocol === 'https:' | ||||
|     ? 'wss:' | ||||
|     : 'ws:' | ||||
|  | ||||
|   const socket = new WebSocket(baseScheme + '//' + window.location.host + peertubeHelpers.getBaseWebSocketRoute() + '/toto'); | ||||
|  | ||||
|   socket.addEventListener('message', (event) => { | ||||
|     console.log(event.data) | ||||
|   }) | ||||
| } | ||||
|  | ||||
| export { | ||||
|  | ||||
| @ -66,6 +66,8 @@ function register ({ registerHook, peertubeHelpers }) { | ||||
|   registerHook({ | ||||
|     target: 'filter:internal.player.videojs.options.result', | ||||
|     handler: (options) => { | ||||
|       console.log(options.plugins.p2pMediaLoader) | ||||
|  | ||||
|       options.poster = '' | ||||
|       return options | ||||
|     } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user