(function () {
    const form = document.querySelector('form');
    const button = form ? form.querySelector('button[type="submit"]') : null;

    if (!form || !button) {
        return;
    }

    form.addEventListener('submit', () => {
        button.disabled = true;
        button.textContent = 'Installing...';
    });
})();
