mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-05 20:42:19 -07:00
Merge 86115704b3
into 91f06801ca
This commit is contained in:
commit
4fa4e71c5f
1 changed files with 8 additions and 0 deletions
|
@ -8,6 +8,7 @@ window.console.debug = window.console.debug || function() {};
|
||||||
window.console.warn = window.console.warn || function() {};
|
window.console.warn = window.console.warn || function() {};
|
||||||
window.console.assert = window.console.assert || function() {};
|
window.console.assert = window.console.assert || function() {};
|
||||||
|
|
||||||
|
// TODO: Remove in v5, well suppoprted in browsers
|
||||||
if (!String.prototype.startsWith) {
|
if (!String.prototype.startsWith) {
|
||||||
Object.defineProperty(String.prototype, 'startsWith', {
|
Object.defineProperty(String.prototype, 'startsWith', {
|
||||||
enumerable: false,
|
enumerable: false,
|
||||||
|
@ -20,6 +21,7 @@ if (!String.prototype.startsWith) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Remove in v5, well suppoprted in browsers
|
||||||
if (!String.prototype.endsWith) {
|
if (!String.prototype.endsWith) {
|
||||||
Object.defineProperty(String.prototype, 'endsWith', {
|
Object.defineProperty(String.prototype, 'endsWith', {
|
||||||
enumerable: false,
|
enumerable: false,
|
||||||
|
@ -34,8 +36,14 @@ if (!String.prototype.endsWith) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Remove in v5, use `includes` instead
|
||||||
if (!('contains' in String.prototype)) {
|
if (!('contains' in String.prototype)) {
|
||||||
String.prototype.contains = function(str, startIndex) {
|
String.prototype.contains = function(str, startIndex) {
|
||||||
return String.prototype.indexOf.call(this, str, startIndex) !== -1;
|
return String.prototype.indexOf.call(this, str, startIndex) !== -1;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// For Firefox ESR 115 support
|
||||||
|
if (!Object.groupBy) {
|
||||||
|
import('core-js/actual/object/group-by');
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue