Skip to content

Commit

Permalink
avoid duplicate revivers
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed Nov 11, 2024
1 parent 5acbdc0 commit 7d82cee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/js/channels.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ Genie.Revivers.rebuildReviver = function() {
}

Genie.Revivers.addReviver = function(reviver) {
if (Genie.Revivers.revivers.includes(reviver)) return
Genie.Revivers.revivers.push(reviver)
Genie.Revivers.rebuildReviver()
}
Expand Down

0 comments on commit 7d82cee

Please sign in to comment.