Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make code more generic #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

felixmosh
Copy link

This PR contains the following improvments:

  1. Improve the payload structure,
    1.1 No try & catch repetition
    1.2 Handle Promise failure properly
    1.3 Default value in one place, using the value || '' syntax
  2. Trim whitespace of DOM value
  3. Fix single point of failure (if jsdeliver is blocked / down)
  4. Prevent global env pollution

Trim whitespace of DOM value
Fix single point of failure (if jsdeliver is blocked / down)
Prevent global env pollution
Copy link

@sgpentester sgpentester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed this code, looks good! It also fixed #20 along the way :)

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.

2 participants