Update js/background.js

Co-Authored-By: Mikunj Varsani <Mikunj@users.noreply.github.com>
pull/702/head^2
Vince 5 years ago committed by GitHub
parent 90cce5e9ae
commit 24ebf6b26a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save