MCPcopy Create free account
hub / github.com/FastLED/FastLED / loadVideoSettings

Function loadVideoSettings

src/platforms/wasm/compiler/app.ts:331–351  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

329
330// Always use default settings (no localStorage persistence)
331function loadVideoSettings() {
332 // Aggressive cleanup of any video-related localStorage keys
333 const keysToRemove = [
334 'videoRecordingSettings',
335 'videoSettings',
336 'fastled_video_settings',
337 'recording_settings'
338 ];
339
340 keysToRemove.forEach(key => {
341 if (localStorage.getItem(key)) {
342 localStorage.removeItem(key);
343 console.log(`Removed old ${key} from localStorage`);
344 }
345 });
346
347 // Always return fresh defaults - no persistence needed
348 videoSettings = { ...videoSettingsDefaults };
349 console.log('Video settings reset to defaults:', videoSettings);
350 return videoSettings;
351}
352
353// No longer saving to localStorage - always use defaults
354function saveVideoSettings() {

Callers 2

showVideoSettingsPopupFunction · 0.85
app.tsFile · 0.85

Calls 2

forEachMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected