fix(cloudflare): add error handling to automated Cloudflare configuration script
This commit is contained in:
parent
d3c517353c
commit
d9136367e9
1 changed files with 6 additions and 3 deletions
|
|
@ -101,8 +101,12 @@ class="flex flex-col gap-2 w-full">
|
|||
@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 @@ class="flex flex-col gap-2 w-full">
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue