diff options
author | tomsmeding <hallo@tomsmeding.nl> | 2015-12-11 20:16:23 +0100 |
---|---|---|
committer | tomsmeding <hallo@tomsmeding.nl> | 2015-12-11 20:16:23 +0100 |
commit | 9d2137af1be2ab47f18aa33e8e9c6a41da421c79 (patch) | |
tree | eedf3b8f2b83093c9fb059e70776f279420dc400 /common.js | |
parent | 1954ed67ef61c509560418a9d2da58083b822996 (diff) |
things
Diffstat (limited to 'common.js')
-rw-r--r-- | common.js | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,7 +1,11 @@ -var W=8,H=9; - if(typeof module=="undefined")module=false; //hack to support client-side importing +var W=8,H=9; +if(module){ + module.exports.W=W; + module.exports.H=H; +} + if(module)module.exports["emptyboard"]=emptyboard; function emptyboard(){ return new Array(H).fill(0).map(function(){ |