Replace 'includes' with '$.inArray' for IE11
Regression from 864749bb16
.
Change-Id: Ie4fdc673f9e08fbfce24220656380cc3e183da37
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89593
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Aron Budea <aron.budea@collabora.com>
This commit is contained in:
parent
ecafb84258
commit
1173d8df30
1 changed files with 1 additions and 1 deletions
|
@ -1096,7 +1096,7 @@ L.TileLayer = L.GridLayer.extend({
|
|||
var link = null;
|
||||
var coords = null;
|
||||
|
||||
if (textMsg.includes('coordinates')) {
|
||||
if ($.inArray('coordinates', textMsg) !== -1) {
|
||||
var coordpos = textMsg.indexOf(' coordinates');
|
||||
link = textMsg.substring(18, coordpos);
|
||||
coords = textMsg.substring(coordpos+12);
|
||||
|
|
Loading…
Reference in a new issue