Skip to content

Commit

Permalink
Share without hash fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
ccouzens committed Apr 14, 2024
1 parent 2fc2ac2 commit f8390f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/game/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,10 @@ function clickHandlerFactory(
if (value === "new") {
newMaze(app);
} else if (value === "share") {
const url = new URL(app.window.location.href);
url.hash = "";
app.window.navigator.share({
url: app.window.location.href,
url: url.href,
title: "Maze puzzle",
});
}
Expand Down

0 comments on commit f8390f1

Please sign in to comment.