Permalink
Browse files

[mount] Add JS code for loading the library

  • Loading branch information...
1 parent ef0e7e0 commit fe8b059adf87b377db5c6ecc2ac4948d59251f90 @mmalecki committed Oct 29, 2011
Showing with 11 additions and 0 deletions.
  1. +11 −0 lib/mount.js
View
@@ -0,0 +1,11 @@
+var binding;
+
+try {
+ binding = require('../build/default/mount');
+}
+catch (e) {
+ binding = require('../build/Release/mount');
+}
+
+module.exports = binding;
+

0 comments on commit fe8b059

Please sign in to comment.