support-form

Source: support-form.js:16

Support-form decision logic — the pure branches behind the Help modal's "Send to support" button.

Extracted from renderer.html's submit handler so it can be unit-tested in plain Node (test/support-form.test.js) without a DOM. The renderer still owns all DOM reads/writes and the IPC call; this module owns only the decisions — which submissions are sendable, and which sentence each outcome earns — so the two stay in lock-step by construction.

Loaded two ways (UMD-lite): the Electron renderer loads it with a plain script tag, which attaches window.SupportForm (no nodeIntegration needed; module is undefined there); Node tests require('../src/support-form.js') and use module.exports.