Skip to content

Commit

Permalink
Revert "js-0104 yoda"
Browse files Browse the repository at this point in the history
This reverts commit eaf088c.
  • Loading branch information
epugh committed Mar 23, 2023
1 parent 6e57d1c commit c56705e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/interceptors/rails-csrf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ angular.module('ng-rails-csrf', [] )
$httpProvider.interceptors.push(function() {
return {
'request': function(config) {
if ( typeof(config.url) === 'string' && config.url.indexOf('/api') === 0 ) {
if ( 'string' === typeof(config.url) && config.url.indexOf('/api') === 0 ) {
var headers = config.headers;
var token = getToken();

Expand Down

0 comments on commit c56705e

Please sign in to comment.