Skip to content

Commit

Permalink
feat: push state on every run btn click
Browse files Browse the repository at this point in the history
This allows devs to go back to previous bundles just by click the browser back btn
  • Loading branch information
okikio authored Oct 7, 2021
1 parent 42835c3 commit 98551cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ BundleEvents.on({
});

RunBtn.addEventListener("click", () => {
window.history.pushState({}, "", generateShareLink());
BundleEvents.emit("bundle");
});
})();
Expand Down

0 comments on commit 98551cf

Please sign in to comment.