Skip to content

Commit

Permalink
Fix getUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Feb 10, 2025
1 parent 06953b6 commit 8732d42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/essence/Basics/Layers_/Layers_.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ const L_ = {
},
getUrl: function (type, url, layerData) {
let nextUrl = url
if (nextUrl.startsWith('COG:')) nextUrl = nextUrl.slice(4)
if (nextUrl != null && nextUrl.startsWith('COG:'))
nextUrl = nextUrl.slice(4)
if (!F_.isUrlAbsolute(nextUrl)) {
nextUrl = L_.missionPath + nextUrl
}
Expand Down

0 comments on commit 8732d42

Please sign in to comment.