diff --git a/js/background.js b/js/background.js index d3b9d90d5..c4251c256 100644 --- a/js/background.js +++ b/js/background.js @@ -816,7 +816,7 @@ }; // Give all toasts an ID. User may define. - const toastID = options.id + const toastID = options.id || Math.random().toString(36).substring(3) ? options.id : Math.random() .toString(36)