Skip to content

Commit

Permalink
index: fix export
Browse files Browse the repository at this point in the history
  • Loading branch information
taye committed Apr 13, 2018
1 parent 86c22ac commit f03fed8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@
* See https://github.com/taye/interact.js/issues/187
*/

import { init } from '@interactjs/interact';
import { interact, init } from '@interactjs/interact';

const exported = typeof window === 'undefined'
? window => {
return init(window);
}
: init(window);
const exported = typeof window === 'object'
? interact
: init;

export default exported;

Expand Down

0 comments on commit f03fed8

Please sign in to comment.