MCPcopy Index your code
hub / github.com/bernaferrari/FigmaToCode / initializeOnce

Function initializeOnce

apps/plugin/plugin-src/code.ts:138–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 figma.showUI(__html__, { width: 450, height: 700, themeColors: true });
137 let initialized = false;
138 const initializeOnce = async () => {
139 if (initialized) {
140 return;
141 }
142 initialized = true;
143 await initSettings();
144 };
145
146 // Listen for selection changes
147 figma.on("selectionchange", () => {

Callers 1

standardModeFunction · 0.85

Calls 1

initSettingsFunction · 0.85

Tested by

no test coverage detected