@@ -119,7 +119,7 @@ module.exports = class Plugin {
}
install () {
- return
+
uninstall () {
@@ -13,7 +13,7 @@ jest.mock('../core/Utils', () => ({
getFormData.mockImplementation(() => ({ foo: 'bar' }))
nanoraf.mockImplementation(cb => {
- cb({ some: 'state' })
+ cb({ some: 'state' }) // eslint-disable-line standard/no-callback-literal
return () => {}
})
@@ -93,7 +93,6 @@ module.exports = class Tus10 extends Plugin {
updatedFiles[file] = updatedFile
this.core.setState({files: updatedFiles})
@@ -7,7 +7,6 @@ const { dataURItoFile } = require('../../../core/Utils')
*/
module.exports = class Webcam {
constructor (opts = {}, params = {}) {
- this._userMedia
this.userMedia = true
this.protocol = location.protocol.match(/https/i) ? 'https' : 'http'
@@ -24,7 +24,7 @@
var allLinks = []
function updateSidebar () {
- var top = doc && doc.scrollTop || body.scrollTop
+ var top = (doc && doc.scrollTop) || body.scrollTop
var headerHeight = header.offsetHeight
if (top > headerHeight) {
main.classList.add('fix-sidebar')