mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
id
This commit is contained in:
parent
703d1e42e3
commit
183a62627c
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ export async function exportToBackend(
|
||||||
const json = await response.json();
|
const json = await response.json();
|
||||||
if (json.id) {
|
if (json.id) {
|
||||||
const url = new URL(window.location.href);
|
const url = new URL(window.location.href);
|
||||||
url.searchParams.append("json", json.id);
|
url.searchParams.append("id", json.id);
|
||||||
|
|
||||||
await navigator.clipboard.writeText(url.toString());
|
await navigator.clipboard.writeText(url.toString());
|
||||||
window.alert(`Copied to clipboard: ${url.toString()}`);
|
window.alert(`Copied to clipboard: ${url.toString()}`);
|
||||||
|
|
Loading…
Add table
Reference in a new issue