MCPcopy Create free account
hub / github.com/32comic/image2pixel-web / loadCustomPalettes

Function loadCustomPalettes

web/js/main.js:611–620  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

609
610// Custom Palette Persistence
611function 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
622function saveCustomPalettes() {
623 try {

Callers 1

loadPalettesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected