Skip to content

Commit

Permalink
fix(html): Fixing escape problem for js template string
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Sep 24, 2022
1 parent 6df6e11 commit 039855d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/fibr/templates/map-modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ <h2>You must enable Javascript to have interactive map with pictures.</h2>
async function loadLeaflet() {
const leafletVersion = "1.9.1";

await addStyle(`https://unpkg.com/leaflet@${leafletVersion}/dist/leaflet.css`, 'sha512-UkezATkM8unVC0R/Z9Kmq4gorjNoFwLMAWR/1yZpINW08I79jEKx/c8NlLSvvimcu7SL8pgeOnynxfRpe+5QpA==', 'anonymous');
await addStyle({{ js "`https://unpkg.com/leaflet@${leafletVersion}/dist/leaflet.css`" }}, 'sha512-UkezATkM8unVC0R/Z9Kmq4gorjNoFwLMAWR/1yZpINW08I79jEKx/c8NlLSvvimcu7SL8pgeOnynxfRpe+5QpA==', 'anonymous');
await addStyle('https://unpkg.com/[email protected]/dist/MarkerCluster.Default.css', 'sha512-6ZCLMiYwTeli2rVh3XAPxy3YoR5fVxGdH/pz+KMCzRY2M65Emgkw00Yqmhh8qLGeYQ3LbVZGdmOX9KUjSKr0TA==', 'anonymous');
await resolveScript(`https://unpkg.com/leaflet@${leafletVersion}/dist/leaflet.js`, 'sha512-y6IQOhEalDvx6StYG9hG/64K2vuX3bVJ2Q3sBd0uP2UlhIAwOc9DEFgQ/oz1dQmsc2XbWwhn5MfpT76+1bx2Gg==', 'anonymous');
await resolveScript({{ js "`https://unpkg.com/leaflet@${leafletVersion}/dist/leaflet.js`" }}, 'sha512-y6IQOhEalDvx6StYG9hG/64K2vuX3bVJ2Q3sBd0uP2UlhIAwOc9DEFgQ/oz1dQmsc2XbWwhn5MfpT76+1bx2Gg==', 'anonymous');
await resolveScript('https://unpkg.com/[email protected]/dist/leaflet.markercluster.js', 'sha512-+Zr0llcuE/Ho6wXRYtlWypMyWSEMxrWJxrYgeAMDRSf1FF46gQ3PAVOVp5RHdxdzikZXuHZ0soHpqRkkPkI3KA==', 'anonymous');
}

Expand Down

0 comments on commit 039855d

Please sign in to comment.