Name Description Size Coverage CI issues
content 75 %
docs -
modules 91 %
modules-testing -
moz.build 2137 -
pings.yaml 1233 -
SyncComponents.manifest 151 -
<1%tests -
tps -
Weave.sys.mjs Sync's WeaveService. It is named "Weave" for historical reasons. It's worth noting how Sync is lazily loaded. We register a timer that loads Sync a few seconds after app startup. This is so Sync does not adversely affect application start time. If Sync is not configured, no extra Sync code is loaded. If an external component (say the UI) needs to interact with Sync, it should use the promise-base function whenLoaded() - something like the following: ```js // 1. Grab a handle to the Sync service. let {WeaveService} = ChromeUtils.importESModule( "moz-src:///services/sync/Weave.sys.mjs" ); // 2. Use the .then method of the promise. WeaveService.whenLoaded().then(() => { // You are free to interact with "WeaveService." objects. return; }); ``` And that's it! 3578 -