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:
Aron Budea 2020-02-26 21:10:37 +01:00
parent ecafb84258
commit 1173d8df30

View file

@ -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);