MCPcopy Create free account
hub / github.com/pollinations/pollinations / getSavedMemes

Function getSavedMemes

apps/catgpt/script.js:162–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160const STORAGE_KEY = "catgpt-generated";
161
162function getSavedMemes() {
163 try {
164 return JSON.parse(localStorage.getItem(STORAGE_KEY)) || [];
165 } catch {
166 return [];
167 }
168}
169
170function saveGeneratedMeme(prompt, url) {
171 const saved = getSavedMemes();

Callers 2

saveGeneratedMemeFunction · 0.85
loadUserMemesFunction · 0.85

Calls 2

parseMethod · 0.80
getItemMethod · 0.65

Tested by

no test coverage detected