mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
v1.22.28
This commit is contained in:
parent
e3e2de9e9b
commit
71d1e54dfc
1 changed files with 1 additions and 1 deletions
|
|
@ -221,7 +221,7 @@ function restoreDefaultZoomExtent() {
|
|||
function copyMapURL() {
|
||||
const locked = document.querySelectorAll("i.icon-lock").length; // check if some options are locked
|
||||
const search = `?seed=${optionsSeed.value}&width=${graphWidth}&height=${graphHeight}${locked?'':'&options=default'}`;
|
||||
navigator.clipboard.writeText("https://azgaar.github.io/Fantasy-Map-Generator/"+search)
|
||||
navigator.clipboard.writeText(location.host+location.pathname+search)
|
||||
.then(() => {
|
||||
tip("Map URL is copied to clipboard", false, "success", 3000);
|
||||
//window.history.pushState({}, null, search);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue