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

fix: remove the addition of body class #7

Merged
merged 1 commit into from
Dec 15, 2021

Conversation

andon
Copy link
Contributor

@andon andon commented Dec 15, 2021

According to the bridget documentation, the installation is done in the head-tag, when the body-tag is not available, hence we have an error.

I'm reverting the change and will cut a new release.

In case an integrator needs the functionality, my suggestion is for now to execute the following at the start of the body tag:

<body>
    <script>
      if (this.bridget && this.bridget.isWebview()) {
        document.body.classList.add('fp-bridget__webview-body')
      }
    </script>

@andon andon merged commit 2703bb6 into master Dec 15, 2021
@andon andon deleted the fix/remove-addition-of-body-class branch December 15, 2021 18:25
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.

None yet

1 participant