Commit 81ae6c7d authored by Regis's avatar Regis

fire timeago interval no matter what

parent fd9adc78
/* global Vue, gl */ /* global Vue, gl */
/* eslint-disable no-param-reassign */ /* eslint-disable no-param-reassign */
((gl) => { ((gl) => {
const REALTIME = false;
gl.VueTimeAgo = Vue.extend({ gl.VueTimeAgo = Vue.extend({
data() { data() {
return { return {
...@@ -15,13 +13,11 @@ ...@@ -15,13 +13,11 @@
'addTimeInterval', 'addTimeInterval',
], ],
created() { created() {
if (!REALTIME) {
this.timeInterval = setInterval(() => { this.timeInterval = setInterval(() => {
this.currentTime = new Date(); this.currentTime = new Date();
}, 1000); }, 1000);
this.addTimeInterval(this.timeInterval, this); this.addTimeInterval(this.timeInterval, this);
}
}, },
computed: { computed: {
localTimeFinished() { localTimeFinished() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment