BigW Consortium Gitlab

Commit 81ae6c7d by Regis

fire timeago interval no matter what

parent fd9adc78
/* global Vue, gl */
/* eslint-disable no-param-reassign */
((gl) => {
const REALTIME = false;
gl.VueTimeAgo = Vue.extend({
data() {
return {
......@@ -15,13 +13,11 @@
'addTimeInterval',
],
created() {
if (!REALTIME) {
this.timeInterval = setInterval(() => {
this.currentTime = new Date();
}, 1000);
this.timeInterval = setInterval(() => {
this.currentTime = new Date();
}, 1000);
this.addTimeInterval(this.timeInterval, this);
}
this.addTimeInterval(this.timeInterval, this);
},
computed: {
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