mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: add EmitDeprecationWarning helper (#46860)
* refactor: add EmitDeprecationWarning helper Also switches EmitWarning to using Node's ProcessEmitWarningGeneric * chore: use node namespace for function call
This commit is contained in:
@@ -666,10 +666,9 @@ void WebRequest::SetListener(Event event,
|
||||
}
|
||||
|
||||
if (filter_include_patterns.empty()) {
|
||||
util::EmitWarning(
|
||||
util::EmitDeprecationWarning(
|
||||
"The urls array in WebRequestFilter is empty, which is deprecated. "
|
||||
"Please use '<all_urls>' to match all URLs.",
|
||||
"DeprecationWarning");
|
||||
"Please use '<all_urls>' to match all URLs.");
|
||||
filter_include_patterns.insert("<all_urls>");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user