@outreach/launchdarkly-js-extension-sdk
v1.1.5
Published
LaunchDarkly browser extension background service worker sdk
Downloads
3,016
Readme
@outreach/launchdarkly-js-extension-sdk
LaunchDarkly SDK for browser extension background service workers.
The SDK is built on top of js-sdk-common which is not an official API provided by LaunchDarkly. This SDK can break with feature releases of js-sdk-common.
The implementation of the SDK is similar to browser SDK with following differences:
- It uses
fetch
instead ofXMLHttpRequest
for network requests - It uses
chrome.storage.local
for flag caching instead oflocalStorage
- It hooks to
chrome.runtime.onSuspend
for cleanup (flushing analytic events) instead ofunload
event listener