Skip to content

Newletter.js only runs when there is a newsletter (#400)#402

Merged
alexgibson merged 1 commit intomozilla:masterfrom
stephaniehobson:newsletter
Jul 9, 2019
Merged

Newletter.js only runs when there is a newsletter (#400)#402
alexgibson merged 1 commit intomozilla:masterfrom
stephaniehobson:newsletter

Conversation

@stephaniehobson
Copy link
Copy Markdown
Contributor

@stephaniehobson stephaniehobson commented Jul 8, 2019

Description

Describe what this change does.

  • I have documented this change in the design system.
  • I have recorded this change in CHANGELOG.md.

Issue

Fix #400

Testing

Include newsletter.js in a component that doesn't need it on the master branch, verify you get the error, switch to this branch and verify you do not.
<script src="{{@root.baseurl}}/assets/protocol/protocol/js/protocol-newsletter.js"></script>

@alexgibson alexgibson merged commit 069ef18 into mozilla:master Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Newletter.js throws error when no newsletter on page

2 participants