Skip to content

Instantly share code, notes, and snippets.

@ratelChief
Created May 2, 2018 08:33
Show Gist options
  • Save ratelChief/09468a752d52ce11b137e5cd27a42144 to your computer and use it in GitHub Desktop.
Save ratelChief/09468a752d52ce11b137e5cd27a42144 to your computer and use it in GitHub Desktop.
'use strict';
window.backend = (function () {
var URL_DOWNLOAD = 'https://js.dump.academy/code-and-magick/data';
var URL_UPLOAD = 'https://js.dump.academy/code-and-magick';
var xhr = new XMLHttpRequest();
xhr.responseType = 'json';
return {
load: function (onLoad, onError) {
},
save: function (data, onLoad, onError) {
}
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment