mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
hack fix for window.exports
This commit is contained in:
parent
3bc77dad6e
commit
58f6689a33
1 changed files with 4 additions and 1 deletions
5
index.js
5
index.js
|
|
@ -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) {}
|
||||
Loading…
Reference in a new issue