requirejs-text now uses CORS XHR requests to static files
This commit is contained in:
parent
6126f0ec6f
commit
05c8b571e2
@ -3,4 +3,4 @@ define(["text!./postbox.html", "text!./comment.html"], function (postbox, commen
|
|||||||
postbox: postbox,
|
postbox: postbox,
|
||||||
comment: comment
|
comment: comment
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
@ -4,4 +4,4 @@ define(["text!./forward.svg", "text!./arrow-down.svg", "text!./arrow-up.svg"], f
|
|||||||
"arrow-down": arrdown,
|
"arrow-down": arrdown,
|
||||||
"arrow-up": arrup
|
"arrow-up": arrup
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
@ -3,5 +3,13 @@ var requirejs = {
|
|||||||
q: "components/q/q",
|
q: "components/q/q",
|
||||||
text : "components/requirejs-text/text",
|
text : "components/requirejs-text/text",
|
||||||
ready: "components/requirejs-domready/domReady"
|
ready: "components/requirejs-domready/domReady"
|
||||||
|
},
|
||||||
|
|
||||||
|
config: {
|
||||||
|
text: {
|
||||||
|
useXhr: function (url, protocol, hostname, port) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user