MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / parseMaxFileSizeMBInput

Function parseMaxFileSizeMBInput

renderer.js:4–8  ·  view source on GitHub ↗

Parse max file size (MB) from Performance settings input; requires integer >= 1.

(raw)

Source from the content-addressed store, hash-verified

2const DEBUG = true; // Enable debugging temporarily
3/** Parse max file size (MB) from Performance settings input; requires integer >= 1. */
4function parseMaxFileSizeMBInput(raw) {
5 const n = parseInt(raw, 10);
6 if (Number.isNaN(n) || n < 1) return null;
7 return n;
8}
9console.log('[Renderer] script loaded');
10window.addEventListener('DOMContentLoaded', () => {
11 console.log('[Renderer] DOMContentLoaded fired');

Callers 2

renderer.jsFile · 0.85
savePerformanceSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected