Skip to content

Commit

Permalink
Update assets/js/phoenix_live_view/live_socket.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Jul 17, 2023
1 parent ca70fe8 commit 231fcc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/phoenix_live_view/live_socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ export default class LiveSocket {
let scroll = window.scrollY
this.withPageLoading({to: href, kind: "redirect"}, done => {
this.replaceMain(href, flash, (linkRef) => {
if(linkRef == this.linkRef) {
if(linkRef === this.linkRef){
Browser.pushState(linkState, {type: "redirect", id: this.main.id, scroll: scroll}, href)
DOM.dispatchEvent(window, "phx:navigate", {detail: {href, patch: false, pop: false}})
this.registerNewLocation(window.location)
Expand Down

0 comments on commit 231fcc5

Please sign in to comment.