hack fix for window.exports

This commit is contained in:
Tyler Renelle 2013-04-10 15:00:18 -04:00
parent 3bc77dad6e
commit 58f6689a33

View file

@ -4,4 +4,7 @@ exports.helpers = require('./helpers')
// This is how we're exporting this module to the browser. A preferable way would be http://requirejs.org/docs/api.html#packages
// but I couldn't get that working
if (!!window) window.habitrpgShared = exports;
try {
window;
window.habitrpgShared = exports;
} catch(e) {}