fix(cloudflare): add error handling to automated Cloudflare configuration script
This commit is contained in:
@@ -101,8 +101,12 @@
|
||||
@script
|
||||
<script>
|
||||
$wire.$on('automatedCloudflareConfig', () => {
|
||||
window.dispatchEvent(new CustomEvent('automated'));
|
||||
$wire.$call('automatedCloudflareConfig');
|
||||
try {
|
||||
window.dispatchEvent(new CustomEvent('automated'));
|
||||
$wire.$call('automatedCloudflareConfig');
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endscript
|
||||
@@ -122,4 +126,3 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user