Add demo artwork open links to website

This commit is contained in:
Keavon Chambers
2023-08-22 03:41:19 -07:00
parent 0dcfafbf64
commit cc0192977d
3 changed files with 10 additions and 7 deletions
@@ -101,6 +101,9 @@ export function createEditor() {
const filename = url.pathname.split("/").pop() || "Untitled";
const content = await data.text();
instance.openDocumentFile(filename, content);
// Remove the hash fragment from the URL
window.location.hash = "";
} catch {}
})();