Skip to content

Commit

Permalink
Add web-ext script
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored and adriancole committed Sep 4, 2017
1 parent 4a522e0 commit aad5261
Show file tree
Hide file tree
Showing 3 changed files with 3,422 additions and 230 deletions.
6 changes: 4 additions & 2 deletions js/ZipkinPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ export default class ZipkinPlugin {
// Fetch the endpoint to check if we get redirected
const fetchUrl = await fetch(url);

// Never actually download the body
await fetchUrl.body.cancel();
if (fetchUrl.body) {
// Never actually download the body
await fetchUrl.body.cancel();
}

if (fetchUrl.redirected && fetchUrl.url === `${url}/zipkin/`) {
url = `${url}/zipkin`
Expand Down
Loading

0 comments on commit aad5261

Please sign in to comment.