mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-29 18:18:27 +00:00
replace calls to String.prototype.contains with String.prototype.includes
This commit is contained in:
@@ -24,7 +24,7 @@ function checkWarning(pref, buffer) {
|
||||
observe: function(event) {
|
||||
let message = event.message;
|
||||
if (!(message.startsWith("Warning: attempting to write")
|
||||
&& message.contains(pref))) {
|
||||
&& message.includes(pref))) {
|
||||
return;
|
||||
}
|
||||
if (complete) {
|
||||
|
||||
Reference in New Issue
Block a user