Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* Get the Deliver store
* @param {[type]} theLocation [description]
* @return {[type]} Only one store location will be returned.
const getTheDeliveryStore = function( theLocation ) {
var data = null;
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
});"GET", "");
xhr.setRequestHeader("accept", "application/json");
xhr.setRequestHeader("access-control-request-headers", "*");
xhr.setRequestHeader("cache-control", "no-cache");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.