mirror of
https://github.com/GuySandler/CanvasRefined.git
synced 2026-11-25 07:07:14 +01:00
quick fix
This commit is contained in:
1 parent
61ef8e163c
commit
be3bc0a428
5 files changed
+12
-3
No files matched your search
@@ -2120,6 +2120,8 @@ function populateAnnouncements() {
|
||||
|
||||
function createConfettiBurst(targetElement, opts = {}) {
|
||||
try {
|
||||
if (options.todo_confetti === false) return;
|
||||
|
||||
const count = opts.count || 48;
|
||||
const colors = opts.colors || ['#ff4d4f', '#ffc107', '#28a745', '#17a2b8', '#6f42c1', '#ff6b6b', '#ff8a65', '#ffd54f'];
|
||||
const rect = targetElement.getBoundingClientRect();
|
||||
|
||||
Reference in new issue
Block a user