
            window.chrome.webview.addEventListener('message', (event) => {
                const logContainer = document.getElementById('logContainer');
                logContainer.innerHTML += event.data;

                if (event.data.includes('Completed.')) {
                    document.getElementById('overlay').style.display = 'none';
                }
            });
        });
    </script>
</body>
</html>
