mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-02 21:24:10 +01:00
Fall back to String#contains when #includes is not supported.
Changeover was FF40.
This commit is contained in:
@@ -67,4 +67,8 @@
|
||||
for (let [i, value] of this.entries())
|
||||
yield value;
|
||||
};
|
||||
|
||||
if (!String.prototype.includes)
|
||||
String.prototype.includes = String.prototype.contains;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user