Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkszepp committed Aug 4, 2023
1 parent fc8cbaa commit 5fb73a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/app/components/liquid-bind-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Component from '@glimmer/component';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
import { run } from '@ember/runloop';
import isBrowser from 'liquid-fire/is-browser';
import moment from 'moment';

export default class LiquidBindDemoComponent extends Component {
Expand All @@ -16,6 +17,11 @@ export default class LiquidBindDemoComponent extends Component {
this.tick();

const self = this;

if (!isBrowser()){
return;
}

this.interval = setInterval(function () {
run(self, 'tick');
}, 1000);
Expand Down

0 comments on commit 5fb73a7

Please sign in to comment.