Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Merge pull request #109 from theonion/tunic-interceptor-fix
Browse files Browse the repository at this point in the history
Fix TunicConfig so all requests are not intercepted by default
  • Loading branch information
kand committed Feb 24, 2016
2 parents b8aec5a + 6295eaf commit 4906244
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/shared/tunic/tunic-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ angular.module('cms.tunic.config', [
* @returns {boolean} true if url should be intercepted, false otherwise.
*/
shouldBeIntercepted: function (url) {
return url.startsWith(backendRoot + apiPath);
var urlTest = backendRoot + apiPath;
return urlTest !== '' && url.startsWith(urlTest);
}
};
};
Expand Down

0 comments on commit 4906244

Please sign in to comment.