Skip to content

Commit

Permalink
fix build, I hope
Browse files Browse the repository at this point in the history
  • Loading branch information
steveszc committed Jul 10, 2017
1 parent bb6ff41 commit 45e8f04
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/components/pause-menu/component-test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { setupTest, setupRenderingTest } from '@glimmer/test-helpers';
import { setupRenderingTest } from '@glimmer/test-helpers';
import hbs from '@glimmer/inline-precompile';

const { module, test } = QUnit;
Expand Down
3 changes: 2 additions & 1 deletion src/ui/components/snake-app/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export default class Snake extends Component {
@tracked tick : number = 0;

didInsertElement() {
document.querySelector('.loader').style.display = 'none';
let loader = <HTMLElement>document.querySelector('.loader');
loader && loader.classList.add('loader--is-loaded');
}

changeSize(size : number) {
Expand Down
4 changes: 4 additions & 0 deletions src/ui/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ body {
border-radius: 100%;
}

.loader--is-loaded {
display: none;
}

.game {
display: flex;
}
Expand Down

0 comments on commit 45e8f04

Please sign in to comment.