Commit 872b1259 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

bugfix IE11 open url

parent b5ee28eb
...@@ -1183,7 +1183,7 @@ var STWkit; ...@@ -1183,7 +1183,7 @@ var STWkit;
}; };
CardControl.prototype.open = function (geojson) { CardControl.prototype.open = function (geojson) {
var self = this; var self = this;
if (geojson.features[0].properties.type == self.type && self.subtype.includes(geojson.features[0].properties.subtype)) { if (geojson.features[0].properties.type == self.type && (self.subtype.search(geojson.features[0].properties.subtype)) >= 0) {
self.clear(); self.clear();
for (var i in self.cardMap) { for (var i in self.cardMap) {
if (self.cardMap.hasOwnProperty(i)) { if (self.cardMap.hasOwnProperty(i)) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -1308,7 +1308,7 @@ module STWkit { ...@@ -1308,7 +1308,7 @@ module STWkit {
public open(geojson) { public open(geojson) {
var self = this; var self = this;
if (geojson.features[0].properties.type == self.type && self.subtype.includes(geojson.features[0].properties.subtype)) { if (geojson.features[0].properties.type == self.type && (self.subtype.search(geojson.features[0].properties.subtype)) >= 0) {
self.clear(); self.clear();
for (var i in self.cardMap) { for (var i in self.cardMap) {
if (self.cardMap.hasOwnProperty(i)) { if (self.cardMap.hasOwnProperty(i)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment