Skip to content

Commit

Permalink
Adjust bookend config request execution
Browse files Browse the repository at this point in the history
  • Loading branch information
jackbsteinberg committed Jan 16, 2020
1 parent 8fe15e4 commit 1a73e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/amp-story/1.0/amp-story-request-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class AmpStoryRequestService {
const credentials = bookendEl.getAttribute(
BOOKEND_CREDENTIALS_ATTRIBUTE_NAME
);
return this.executeRequest(rawUrl, {credentials});
return this.executeRequest(rawUrl, credentials ? {credentials} : {});
}

// Fallback. Check for an inline json config.
Expand Down

0 comments on commit 1a73e28

Please sign in to comment.