File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 154
154
155
155
156
156
for ( const buttonName of buttonNames ) {
157
- if ( availableButtons . indexOf ( buttonName ) > 0 ) {
157
+ if ( availableButtons . indexOf ( buttonName ) !== - 1 ) {
158
158
console . log ( 'Subscribing to' , buttonName ) ;
159
159
await screenManager . addButtonListener ( buttonName , this . _onButtonListener . bind ( this ) ) . catch ( function ( err ) {
160
160
console . error ( err ) ;
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ class AppClient {
149
149
ButtonName . TUNEUP , ButtonName . TUNEDOWN ] ;
150
150
151
151
for ( const buttonName of buttonNames ) {
152
- if ( availableButtons . indexOf ( buttonName ) > 0 ) {
152
+ if ( availableButtons . indexOf ( buttonName ) !== - 1 ) {
153
153
console . log ( 'Subscribing to' , buttonName ) ;
154
154
await screenManager . addButtonListener ( buttonName , this . _onButtonListener . bind ( this ) ) . catch ( function ( err ) {
155
155
console . error ( err ) ;
@@ -233,4 +233,4 @@ class AppClient {
233
233
}
234
234
235
235
console . log ( 'start app' ) ;
236
- new AppClient ( ) ;
236
+ new AppClient ( ) ;
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ class AppClient {
143
143
ButtonName . TUNEUP , ButtonName . TUNEDOWN ] ;
144
144
145
145
for ( const buttonName of buttonNames ) {
146
- if ( availableButtons . indexOf ( buttonName ) > 0 ) {
146
+ if ( availableButtons . indexOf ( buttonName ) !== - 1 ) {
147
147
console . log ( 'Subscribing to' , buttonName ) ;
148
148
await screenManager . addButtonListener ( buttonName , this . _onButtonListener . bind ( this ) ) . catch ( function ( err ) {
149
149
console . error ( err ) ;
Original file line number Diff line number Diff line change 184
184
ButtonName . TUNEUP , ButtonName . TUNEDOWN ] ;
185
185
186
186
for ( const buttonName of buttonNames ) {
187
- if ( availableButtons . indexOf ( buttonName ) > 0 ) {
187
+ if ( availableButtons . indexOf ( buttonName ) !== - 1 ) {
188
188
console . log ( 'Subscribing to' , buttonName ) ;
189
189
await screenManager . addButtonListener ( buttonName , this . _onButtonListener . bind ( this ) ) . catch ( function ( err ) {
190
190
console . error ( err ) ;
You can’t perform that action at this time.
0 commit comments