 // Send message to create profile
            window.webkit.messageHandlers['iterm2-about:onboarding-profile'].postMessage({
                action: 'createBrowserProfile',
                sessionSecret: sessionSecret
            });
        }
        
        function onProfileCreated(success) {
            profileReady = true;  // Profile is ready whether it was just created or already existed
            
            const button = document.getElementById('create-profile-btn');
            const success