From 7804a2db86b42e99f97e2cd8eeead247d310dfc6 Mon Sep 17 00:00:00 2001 From: oterral Date: Wed, 24 May 2017 14:09:28 +0200 Subject: [PATCH] Create URL object only when we can --- src/ol/format/kml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/format/kml.js b/src/ol/format/kml.js index 0e2b7bbf62..174e59cdf8 100644 --- a/src/ol/format/kml.js +++ b/src/ol/format/kml.js @@ -488,7 +488,7 @@ ol.format.KML.readFlatCoordinates_ = function(node) { */ ol.format.KML.readURI_ = function(node) { var s = ol.xml.getAllTextContent(node, false).trim(); - if (node.baseURI) { + if (node.baseURI && node.baseURI !== 'about:blank') { var url = new URL(s, node.baseURI); return url.href; } else {