emscripten Humble Cloud interface
Edward Rudd
2014-08-21 682dd00cf25011c16184753e0d3f29ccfd043012
humble_cloud/humble_cloud.js
@@ -1,3 +1,7 @@
// Boiler plate to setup cloud providers registry
var CLOUD_PROVIDERS;
if (!CLOUD_PROVIDERS) CLOUD_PROVIDERS = (typeof CLOUD_PROVIDERS !== 'undefined' ? CLOUD_PROVIDERS : null) || {};
(function() {
    function xhrGET(url, onload, onerror) {
        var xhr = new XMLHttpRequest();
@@ -33,6 +37,6 @@
        }
    };
    // expose out to the page
    window.HUMBLE_CLOUD_PROVIDER = provider;
    // register provider
    CLOUD_PROVIDERS['HumbleBundle'] = provider;
})();