Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #89 from benrudolph/safe-nodejs-check

(#88) - Fix nodejs check
  • Loading branch information...
commit 6ce6e6410cee700c4483c47b2ffcfc17dcc544d9 2 parents 0ee8a5f + bee4bf1
@marcuswestin authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 store.js
View
6 store.js
@@ -159,9 +159,9 @@
store.disabled = true
}
store.enabled = !store.disabled
-
- if (typeof module != 'undefined' && module.exports) { module.exports = store }
+
+ if (typeof module != 'undefined' && module.exports && this.module !== module) { module.exports = store }
else if (typeof define === 'function' && define.amd) { define(store) }
else { win.store = store }
-
+
})(Function('return this')());
Please sign in to comment.
Something went wrong with that request. Please try again.