refactor: replace .indexOf() with .includes() (#39195)

This commit is contained in:
Milan Burda
2023-07-24 12:32:54 +02:00
committed by GitHub
parent 9cd5de7588
commit 2c52eb7e1c
5 changed files with 5 additions and 5 deletions

View File

@@ -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) => {