refactor: replace .indexOf() with .includes() (#39195)
This commit is contained in:
parent
9cd5de7588
commit
2c52eb7e1c
5 changed files with 5 additions and 5 deletions
|
@ -12,7 +12,7 @@ import { listen } from './lib/spec-helpers';
|
|||
import { setTimeout } from 'node:timers/promises';
|
||||
|
||||
const messageContainsSecurityWarning = (event: Event, level: number, message: string) => {
|
||||
return message.indexOf('Electron Security Warning') > -1;
|
||||
return message.includes('Electron Security Warning');
|
||||
};
|
||||
|
||||
const isLoaded = (event: Event, level: number, message: string) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue