TJ Holowaychuk
13 years ago
7 changed files with 30 additions and 7 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