Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Fix bug with unresolved load promise when Facebook SDK already loaded #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sandydoo
Copy link

Fixes #51

  • Implement an assertion to warn developers when the SDK has already been
    loaded by some external source, e.g. another addon.

  • Implement a method of passing a promise which resolves with the FB object via
    the facebookSDK attribute. Allow developers to bring-their-own SDK per
    component and allow to override globally.

Fixes tatango#51

- Implement an assertion to warn developers when the SDK has already been
  loaded by some external source, e.g. another addon.

- Implement a method of passing a promise which resolves with the FB object via
  the facebookSDK attribute. Allow developers to bring-their-own SDK per
  component and allow to override globally.
@ksin
Copy link
Contributor

ksin commented Apr 18, 2017

Thanks @sandydoo ! This looks ok to me. Haven't got the bandwidth to fix failing tests on travis though. Will need awhile to circle back.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Addon quietly breaks if Facebook SDK already loaded
2 participants