Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix module.export error in browser #8

Closed
wants to merge 1 commit into from

Conversation

omidmt
Copy link
Contributor

@omidmt omidmt commented Oct 13, 2016

Just check if it is not in browse mode, try to set modulu.export.

@rranauro
Copy link
Owner

The method proposed creates a problem under node since

typeof window

returns a value. Instead used

if (typeof module && module.export) {
   module.export = ObjTree;
}

@rranauro rranauro closed this Dec 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants