Browse Source
When node switched it's build system to GYP then the resulting bin will be put in "Release" instead of "build". So check for both places with a little `bindings.js` shim.v1.x
Nathan Rajlich
13 years ago
5 changed files with 16 additions and 6 deletions
@ -0,0 +1,10 @@ |
|||||
|
/** |
||||
|
* Compat for changes from node 0.4.x to 0.6.x. |
||||
|
*/ |
||||
|
try { |
||||
|
module.exports = require('../build/Release/canvas'); |
||||
|
} catch (e) { try { |
||||
|
module.exports = require('../build/default/canvas'); |
||||
|
} catch (e) { |
||||
|
throw e; |
||||
|
}} |
Loading…
Reference in new issue