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

Add FB.__buffer.calls support to fb-sdk shim #37

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

kzar
Copy link
Contributor

@kzar kzar commented Nov 28, 2023

It turns out that some websites create a window.FB.__buffers.calls
array listing the FB API calls to make, before loading the fb.sdk-js
script. I couldn't see where that was documented, but let's add rough
support for that flow to try and unbreak those websites.

@kzar kzar requested a review from dharb November 28, 2023 15:16
@kzar kzar force-pushed the expand7-fix-tiktok-fb-login branch from a4a2116 to 126afb1 Compare November 28, 2023 15:20
Copy link
Collaborator

@dharb dharb left a comment

Choose a reason for hiding this comment

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

👍

It turns out that some websites create a window.FB.__buffers.calls
array listing the FB API calls to make, before loading the fb.sdk-js
script. I couldn't see where that was documented, but let's add rough
support for that flow to try and unbreak those websites.
@kzar kzar force-pushed the expand7-fix-tiktok-fb-login branch from 126afb1 to 8f2ed29 Compare November 30, 2023 13:01
@kzar kzar marked this pull request as ready for review November 30, 2023 13:01
@kzar kzar merged commit ba0d8ce into duckduckgo:main Nov 30, 2023
1 check passed
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