davidchambers / tutor

JavaScript interface for the Gatherer card database
https://gatherer.wizards.com/
Do What The F*ck You Want To Public License
149 stars 18 forks source link

Allow running within node-webkit #80

Closed UhhhWaitWhat closed 11 years ago

UhhhWaitWhat commented 11 years ago

Node webkit gives our module access to a window object, even though we still run in a node environment. Therefore we should check, if we can access process and not if we can access window.

(I hope, I did this right, first pull-request I have ever opened)

davidchambers commented 11 years ago

This change looks fine, though you should run make and commit the changes to the JavaScript files.

UhhhWaitWhat commented 11 years ago

ok, will do, should I squash into the old commit or should i add a new one?

davidchambers commented 11 years ago

Squash, please. :)

UhhhWaitWhat commented 11 years ago

Done

davidchambers commented 11 years ago

Thanks.