1
0
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:
Doug Kearns
2015-12-21 02:25:59 +11:00
parent a19a8653c1
commit cb42274a46

View File

@@ -67,4 +67,8 @@
for (let [i, value] of this.entries())
yield value;
};
if (!String.prototype.includes)
String.prototype.includes = String.prototype.contains;
}