aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-08-21 16:13:36 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-08-21 16:13:36 -0700
commit75e62d6f56bffb8d4fd18ce7d2d9077821095c85 (patch)
tree1a93131b1592f212d8d784bec5977ee4154a4e27 /modern
parentbe69f7ea8f58b65cfe164ac77ec5feb74755fb76 (diff)
downloadtrackermap-web-75e62d6f56bffb8d4fd18ce7d2d9077821095c85.tar.gz
trackermap-web-75e62d6f56bffb8d4fd18ce7d2d9077821095c85.tar.bz2
trackermap-web-75e62d6f56bffb8d4fd18ce7d2d9077821095c85.zip
Remove unnecessary escaping
Diffstat (limited to 'modern')
-rw-r--r--modern/src/map/switcher/switcher.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/map/switcher/switcher.js b/modern/src/map/switcher/switcher.js
index 014a35e0..643b6ec0 100644
--- a/modern/src/map/switcher/switcher.js
+++ b/modern/src/map/switcher/switcher.js
@@ -38,7 +38,7 @@ export class SwitcherControl {
}
this.beforeSwitch();
let uri = srcElement.dataset.uri;
- Object.entries(this.variables).forEach(([key, value]) => uri = uri.replaceAll(`\$\{${key}\}`, value));
+ Object.entries(this.variables).forEach(([key, value]) => uri = uri.replaceAll(`$\{${key}}`, value));
this.map.setStyle(uri);
this.afterSwitch();
this.mapStyleContainer.style.display = 'none';