mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-15 03:20:52 +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');
|
var lazyElement = $('#my-lazy-element');
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '../theme-updater',
|
url: "{{url('theme-updater')}}",
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
placeholder.replaceWith(lazyElement);
|
placeholder.replaceWith(lazyElement);
|
||||||
|
|
||||||
@ -213,8 +213,11 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
document.addEventListener('livewire:navigated', () => {
|
document.addEventListener('livewire:navigated', () => {
|
||||||
performOperation();
|
console.log('Livewire navigated');
|
||||||
});
|
setTimeout(() => {
|
||||||
|
performOperation();
|
||||||
|
}, 1000);
|
||||||
|
}, { once: true });
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var iframe = document.getElementById('frPreview');
|
var iframe = document.getElementById('frPreview');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user