mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-22 05:28:12 +08:00
Add demo artwork open links to website
This commit is contained in:
@@ -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 {}
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user