We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 46fb590 + a283280 commit b7ac17bCopy full SHA for b7ac17b
src/main.js
@@ -50,7 +50,7 @@ $.ajax({
50
51
// Add the archive token to a request being sent to the archive api or the thumbservice
52
$.ajaxPrefilter(function(options, originalOptions, jqXHR) {
53
- if ((options.url.startsWith(store.state.urls.archiveApi) || options.url.startsWith(store.state.urls.thumbnailService)) && store.state.profile) {
+ if ((options.url.startsWith(store.state.urls.archiveApi) || options.url.startsWith(store.state.urls.thumbnailService)) && store.state.profile.tokens.api_token) {
54
jqXHR.setRequestHeader('Authorization', 'Token ' + store.state.profile.tokens.api_token);
55
}
56
});
0 commit comments