mirror of https://github.com/Chocobozzz/PeerTube
Fix theater mode
parent
bd54ad1953
commit
99fa5c5bad
|
@ -29,6 +29,7 @@ $video-info-margin-left: 44px;
|
||||||
|
|
||||||
#videojs-wrapper {
|
#videojs-wrapper {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
::ng-deep .video-js {
|
::ng-deep .video-js {
|
||||||
|
|
|
@ -238,7 +238,7 @@ describe('Test user notifications API validators', function () {
|
||||||
it('Should fail with no token', function (next) {
|
it('Should fail with no token', function (next) {
|
||||||
const socket = io(`http://localhost:${server.port}/user-notifications`, { reconnection: false })
|
const socket = io(`http://localhost:${server.port}/user-notifications`, { reconnection: false })
|
||||||
|
|
||||||
socket.on('error', () => {
|
socket.on('error', function () {
|
||||||
socket.removeListener('error', this)
|
socket.removeListener('error', this)
|
||||||
socket.disconnect()
|
socket.disconnect()
|
||||||
next()
|
next()
|
||||||
|
@ -256,7 +256,7 @@ describe('Test user notifications API validators', function () {
|
||||||
reconnection: false
|
reconnection: false
|
||||||
})
|
})
|
||||||
|
|
||||||
socket.on('error', () => {
|
socket.on('error', function () {
|
||||||
socket.removeListener('error', this)
|
socket.removeListener('error', this)
|
||||||
socket.disconnect()
|
socket.disconnect()
|
||||||
next()
|
next()
|
||||||
|
@ -274,9 +274,11 @@ describe('Test user notifications API validators', function () {
|
||||||
reconnection: false
|
reconnection: false
|
||||||
})
|
})
|
||||||
|
|
||||||
const errorListener = socket.on('error', err => {
|
function errorListener (err) {
|
||||||
next(new Error('Error in connection: ' + err))
|
next(new Error('Error in connection: ' + err))
|
||||||
})
|
}
|
||||||
|
|
||||||
|
socket.on('error', errorListener)
|
||||||
|
|
||||||
socket.on('connect', async () => {
|
socket.on('connect', async () => {
|
||||||
socket.removeListener('error', errorListener)
|
socket.removeListener('error', errorListener)
|
||||||
|
|
Loading…
Reference in New Issue