Skip to content

Commit 0667df0

Browse files
committed
refactor: aumento timeout di avvio hook
1 parent 28eed6c commit 0667df0

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

assets/src/js/functions/hooks.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ function handleHooksSuccess(hooks) {
3636

3737
hooks.forEach(function (item, index) {
3838
renderHook(item);
39-
40-
//startHooks(item, true);
4139
completedRequests++;
4240
});
4341

include/bottom.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@
7272
// Hooks
7373
if (!$config['disable_hooks']) {
7474
echo '
75-
startHooks();';
75+
// Avvio hooks dopo 10 secondi
76+
setTimeout(function() {
77+
startHooks();
78+
}, 10*1000);';
7679
}
7780

7881
echo '

include/top.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@
449449
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">
450450
<i class="fa fa-bell-o"></i>
451451
<span id="hooks-badge" class="badge badge-warning">
452-
<span id="hooks-loading"><i class="fa fa-spinner fa-spin"></i></span>
452+
<span id="hooks-loading"><i class="fa fa-clock-o"></i></span>
453453
<span id="hooks-notified"></span>
454454
<span id="hooks-counter" class="d-none">0</span>
455455
<span id="hooks-number" class="d-none">0</span>

0 commit comments

Comments
 (0)