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

Function saveCustomPalettes

web/js/main.js:622–628  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

620}
621
622function saveCustomPalettes() {
623 try {
624 localStorage.setItem(CUSTOM_PALETTES_KEY, JSON.stringify(customPalettes));
625 } catch (e) {
626 console.error('Failed to save custom palettes:', e);
627 }
628}
629
630function deleteCustomPalette(id) {
631 customPalettes = customPalettes.filter(p => p.id !== id);

Callers 2

main.jsFile · 0.85
deleteCustomPaletteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected