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();
|
||||
|
||||
@@ -2,6 +2,7 @@ const syncedSwitches = ['remind', 'tab_icons', 'hide_feedback', 'dark_mode', 're
|
||||
const syncedSubOptions = [
|
||||
"todo_hide_feedback",
|
||||
"todo_full_height",
|
||||
"todo_confetti",
|
||||
"device_dark",
|
||||
"relative_dues",
|
||||
"card_overdues",
|
||||
@@ -113,6 +114,7 @@ const defaultOptions = {
|
||||
"todo_hide_feedback": false,
|
||||
"todo_full_height": false,
|
||||
"todo_progress_rings": true,
|
||||
"todo_confetti": true,
|
||||
"device_dark": false,
|
||||
"cumulative_gpa": { "name": "Cumulative GPA", "hidden": false, "weight": "dnc", "credits": 999, "gr": 3.21 },
|
||||
// "show_updates": false,
|
||||
@@ -305,6 +307,7 @@ function setup() {
|
||||
// /*'card_method_date',*/ "show_updates",
|
||||
"todo_hide_feedback",
|
||||
"todo_progress_rings",
|
||||
"todo_confetti",
|
||||
"todo_full_height",
|
||||
"device_dark",
|
||||
"relative_dues",
|
||||
|
||||
Reference in new issue
Block a user