From 7d82ceec975ed92bdc58746e5ab4ebb10629c95a Mon Sep 17 00:00:00 2001 From: hhaensel Date: Mon, 11 Nov 2024 11:40:41 +0100 Subject: [PATCH] avoid duplicate revivers --- assets/js/channels.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/js/channels.js b/assets/js/channels.js index 700e864d8..ef24303b4 100644 --- a/assets/js/channels.js +++ b/assets/js/channels.js @@ -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() }