()
| 609 | |
| 610 | // Custom Palette Persistence |
| 611 | function loadCustomPalettes() { |
| 612 | try { |
| 613 | const stored = localStorage.getItem(CUSTOM_PALETTES_KEY); |
| 614 | if (stored) { |
| 615 | customPalettes = JSON.parse(stored); |
| 616 | } |
| 617 | } catch (e) { |
| 618 | customPalettes = []; |
| 619 | } |
| 620 | } |
| 621 | |
| 622 | function saveCustomPalettes() { |
| 623 | try { |