MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / saveCustomFonts

Function saveCustomFonts

src/lib/fonts.js:144–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142}
143
144function saveCustomFonts() {
145 const customFonts = {};
146
147 for (const name of customFontNames) {
148 const css = fonts.get(name);
149 if (css) {
150 customFonts[name] = css;
151 }
152 }
153
154 localStorage.setItem(CUSTOM_FONTS_KEY, JSON.stringify(customFonts));
155}
156
157function loadCustomFonts() {
158 try {

Callers 2

addCustomFunction · 0.85
removeFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected