fix: memperbaiki print transaksi
This commit is contained in:
parent
eaed481019
commit
8048e0862c
@ -207,15 +207,19 @@
|
||||
</p>
|
||||
<p class="thank-you">Terima kasih atas kunjungan Anda!</p>
|
||||
</div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||
<script>
|
||||
window.onload = function() {
|
||||
window.onafterprint = function() {
|
||||
setTimeout(() => {
|
||||
window.location.href = "{{ $url }}";
|
||||
}, 3000);
|
||||
};
|
||||
window.print();
|
||||
};
|
||||
|
||||
document.getElementsByTagName("body")[0].onafterprint = function() {
|
||||
myFunction()
|
||||
};
|
||||
|
||||
function myFunction() {
|
||||
window.location.href = "{{ $url }}";
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user