Skip to content

Commit

Permalink
Fixing variable name in condition
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 11, 2017
1 parent ec6881a commit 5ebe5c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/assets/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if (token) {

let userApiToken = document.head.querySelector('meta[name="user-api-token"]');

if (token) {
if (userApiToken) {
window.axios.defaults.headers.common['Authorization'] = 'Bearer ' + userApiToken.content;
} else {
console.error('User API token not found in a meta tag.');
Expand Down

0 comments on commit 5ebe5c5

Please sign in to comment.