var application_data = $("head").data();
function makeAbsolute(url) {
- var a = document.createElement('a');
+ var a = document.createElement("a");
a.href = url;
return a.href;
}
token_secret: application_data.tokenSecret
});
- $.ajaxPrefilter(function(options, jqxhr) {
+ $.ajaxPrefilter(function (options, jqxhr) {
if (options.oauth) {
options.headers = options.headers || {};
options.headers.Authorization = headerGenerator(options.type, makeAbsolute(options.url), jqxhr.data);