mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-12 18:10:46 +01:00
Update theme updater URL and enhance Livewire navigation handling
This commit is contained in:
parent
14b17d2c1c
commit
a3f5976285
@ -197,7 +197,7 @@
|
||||
var lazyElement = $('#my-lazy-element');
|
||||
|
||||
$.ajax({
|
||||
url: '../theme-updater',
|
||||
url: "{{url('theme-updater')}}",
|
||||
success: function(response) {
|
||||
placeholder.replaceWith(lazyElement);
|
||||
|
||||
@ -213,8 +213,11 @@
|
||||
});
|
||||
|
||||
document.addEventListener('livewire:navigated', () => {
|
||||
performOperation();
|
||||
});
|
||||
console.log('Livewire navigated');
|
||||
setTimeout(() => {
|
||||
performOperation();
|
||||
}, 1000);
|
||||
}, { once: true });
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
var iframe = document.getElementById('frPreview');
|
||||
|
Loading…
x
Reference in New Issue
Block a user