Skip to content

Commit 205bfda

Browse files
committed
Fix lint
1 parent 077a466 commit 205bfda

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

renderer/player/elements/header/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const styles = css`
3737
`
3838

3939
class Header extends Component {
40-
constructor(opts) {
40+
constructor (opts) {
4141
super(opts)
4242

4343
this.emit = null
@@ -53,12 +53,12 @@ class Header extends Component {
5353
this.searchComp = new Search()
5454
}
5555

56-
handleSearch(val) {
56+
handleSearch (val) {
5757
this.search = val
5858
this.emit('library:search', val)
5959
}
6060

61-
handleAddButton() {
61+
handleAddButton () {
6262
if (!this.dialogOpen) {
6363
this.dialogOpen = true
6464
const paths = config.get('paths')
@@ -75,27 +75,27 @@ class Header extends Component {
7575
}
7676
}
7777

78-
handlePaths({ filePaths }) {
78+
handlePaths ({ filePaths }) {
7979
this.dialogOpen = false
8080
if (Array.isArray(filePaths) && filePaths.length > 0) {
8181
this.emit('config:set', { filePaths })
8282
this.emit('library:update-library', filePaths)
8383
}
8484
}
8585

86-
handleNav() {
86+
handleNav () {
8787
this.emit('pushState', '#preferences')
8888
}
8989

90-
handleDrop(event) {
90+
handleDrop (event) {
9191
event.preventDefault()
9292
const { files } = event.dataTransfer
9393

9494
const paths = Array(files.length).fill(0).map((_, i) => webUtils.getPathForFile(files.item(i)))
9595
this.handlePaths({ filePaths: paths })
9696
}
9797

98-
createElement(state, emit) {
98+
createElement (state, emit) {
9999
this.emit = emit
100100
this.search = state.library.search
101101
this.loading = state.library.loading
@@ -123,7 +123,7 @@ class Header extends Component {
123123
`
124124
}
125125

126-
update(state, emit) {
126+
update (state, emit) {
127127
if (this.search !== state.library.search) return true
128128
if (this.loading !== state.library.loading) return true
129129
return false

0 commit comments

Comments
 (0)