|
|
@@ -3646,10 +3646,12 @@ function b64DecodeUnicode(str) { |
|
|
|
|
|
|
|
|
function linkScene() { |
|
|
function linkScene() { |
|
|
loc = new URL(window.location); |
|
|
loc = new URL(window.location); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.location = loc.protocol + "//" + loc.host + loc.pathname + "?scene=" + b64EncodeUnicode(JSON.stringify(exportScene())); |
|
|
|
|
|
|
|
|
const link = loc.protocol + "//" + loc.host + loc.pathname + "?scene=" + b64EncodeUnicode(JSON.stringify(exportScene())); |
|
|
|
|
|
window.history.replaceState(null, "Macrovision", link); |
|
|
|
|
|
navigator.clipboard.writeText(link); |
|
|
|
|
|
toast("Copied permalink to clipboard"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function copyScene() { |
|
|
function copyScene() { |
|
|
const results = exportScene(); |
|
|
const results = exportScene(); |
|
|
|
|
|
|
|
|
|