format
This commit is contained in:
parent
02a2bbcd1b
commit
e3efcaa624
2
main.js
2
main.js
@ -117,7 +117,7 @@
|
|||||||
let lat = document.querySelector(`input[name="cp[lattitude]"]`).value
|
let lat = document.querySelector(`input[name="cp[lattitude]"]`).value
|
||||||
let lon = document.querySelector(`input[name="cp[longitude]"]`).value
|
let lon = document.querySelector(`input[name="cp[longitude]"]`).value
|
||||||
|
|
||||||
const text = new Blob([`(${lat}, ${lon})`], { type: "text/plain" });
|
const text = new Blob([`${lat}, ${lon}`], { type: "text/plain" });
|
||||||
const data = new ClipboardItem({ "text/plain": text });
|
const data = new ClipboardItem({ "text/plain": text });
|
||||||
await navigator.clipboard.write([data]);
|
await navigator.clipboard.write([data]);
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user