mirror of
https://github.com/flarum/framework.git
synced 2025-01-21 17:47:30 +08:00
Only update human time objects every ten seconds
This commit is contained in:
parent
630215b742
commit
9df3bbae53
2
framework/core/js/admin/dist/app.js
vendored
2
framework/core/js/admin/dist/app.js
vendored
|
@ -20885,7 +20885,7 @@ System.register('flarum/initializers/humanTime', ['flarum/utils/humanTime'], fun
|
|||
* timestamps rendered with the `humanTime` helper.
|
||||
*/
|
||||
function humanTime() {
|
||||
setInterval(updateHumanTimes, 1000);
|
||||
setInterval(updateHumanTimes, 10000);
|
||||
}
|
||||
|
||||
_export('default', humanTime);
|
||||
|
|
2
framework/core/js/forum/dist/app.js
vendored
2
framework/core/js/forum/dist/app.js
vendored
|
@ -28620,7 +28620,7 @@ System.register('flarum/initializers/humanTime', ['flarum/utils/humanTime'], fun
|
|||
* timestamps rendered with the `humanTime` helper.
|
||||
*/
|
||||
function humanTime() {
|
||||
setInterval(updateHumanTimes, 1000);
|
||||
setInterval(updateHumanTimes, 10000);
|
||||
}
|
||||
|
||||
_export('default', humanTime);
|
||||
|
|
|
@ -14,5 +14,5 @@ function updateHumanTimes() {
|
|||
* timestamps rendered with the `humanTime` helper.
|
||||
*/
|
||||
export default function humanTime() {
|
||||
setInterval(updateHumanTimes, 1000);
|
||||
setInterval(updateHumanTimes, 10000);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user