mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
refactor: replace .indexOf() with .includes() (#39195)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user