Spaces:
Runtime error
Runtime error
open on self
Browse files
frontend/src/lib/Result.svelte
CHANGED
@@ -25,6 +25,7 @@
|
|
25 |
const blob = await domtoimage.toBlob(node, { bgcolor: '#000' });
|
26 |
const a = document.createElement('a');
|
27 |
a.download = `sucess-${Date.now()}.png`;
|
|
|
28 |
a.onclick = async (e) => {
|
29 |
disableDownload = true;
|
30 |
if (a.href) {
|
@@ -68,7 +69,7 @@
|
|
68 |
</script>
|
69 |
|
70 |
<!-- Modal made with tailwind -->
|
71 |
-
<div bind:this={modalEl} class="modal relative z-
|
72 |
<div class="message">
|
73 |
<div class="border-0">
|
74 |
<div class="p-3" bind:this={elToShare}>
|
|
|
25 |
const blob = await domtoimage.toBlob(node, { bgcolor: '#000' });
|
26 |
const a = document.createElement('a');
|
27 |
a.download = `sucess-${Date.now()}.png`;
|
28 |
+
a.target = '_self';
|
29 |
a.onclick = async (e) => {
|
30 |
disableDownload = true;
|
31 |
if (a.href) {
|
|
|
69 |
</script>
|
70 |
|
71 |
<!-- Modal made with tailwind -->
|
72 |
+
<div bind:this={modalEl} class="modal relative z-50" transition:fade>
|
73 |
<div class="message">
|
74 |
<div class="border-0">
|
75 |
<div class="p-3" bind:this={elToShare}>
|