Skip to content

Commit

Permalink
fix incorrect export of util
Browse files Browse the repository at this point in the history
  • Loading branch information
nickschot committed Feb 28, 2018
1 parent dd43035 commit a4ca1d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions addon/utils/get-window-width.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function getWindowWidth() {
return window.innerWidth || document.documentElement.clientWidth || document.getElementsByTagName('body')[0].clientWidth;
}
4 changes: 1 addition & 3 deletions app/utils/get-window-width.js
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export default function getWindowWidth() {
return window.innerWidth || document.documentElement.clientWidth || document.getElementsByTagName('body')[0].clientWidth;
}
export { default } from 'ember-mobile-core/utils/get-window-width';

0 comments on commit a4ca1d1

Please sign in to comment.