fix(cloudflare): add error handling to automated Cloudflare configuration script

This commit is contained in:
Andras Bacsai
2025-06-10 11:06:07 +02:00
parent d3c517353c
commit d9136367e9

View File

@@ -101,8 +101,12 @@
@script @script
<script> <script>
$wire.$on('automatedCloudflareConfig', () => { $wire.$on('automatedCloudflareConfig', () => {
try {
window.dispatchEvent(new CustomEvent('automated')); window.dispatchEvent(new CustomEvent('automated'));
$wire.$call('automatedCloudflareConfig'); $wire.$call('automatedCloudflareConfig');
} catch (error) {
console.error(error);
}
}); });
</script> </script>
@endscript @endscript
@@ -122,4 +126,3 @@
</div> </div>
</div> </div>
</div> </div>
</div>