mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-17 19:43:57 +00:00
replace indexOf with includes where possible
This commit is contained in:
@@ -10,9 +10,9 @@ exports.config = {
|
||||
searchOptions: {
|
||||
type: 'TCPport',
|
||||
searchBuffer: Buffer.from('< GET DEVICE_ID >', 'ascii'),
|
||||
testPort: 3032,
|
||||
testPort: 2202,
|
||||
validateResponse(msg, info) {
|
||||
return msg.toString().indexOf('DEVICE_ID');
|
||||
return msg.toString().includes('DEVICE_ID');
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user