mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-07-16 00:37:21 +02:00
allow ?fullscreen=true for embedded map support
This commit is contained in:
@@ -140,8 +140,13 @@ function updateURL() {
|
||||
return;
|
||||
}
|
||||
|
||||
const currentRoute = router.currentRoute.value;
|
||||
const newHash = `#map=${zoom.value}/${center.value.lat.toFixed(6)}/${center.value.lng.toFixed(6)}`;
|
||||
|
||||
router.replace({
|
||||
hash: `#map=${zoom.value}/${center.value.lat.toFixed(6)}/${center.value.lng.toFixed(6)}`
|
||||
path: currentRoute.path,
|
||||
query: currentRoute.query,
|
||||
hash: newHash,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user