Merge pull request #6849 from oterral/fix_6848
Create URL object only when we can
This commit is contained in:
commit
5af9f71d38
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user