CloudServices/Sync/FxSync/Developer/ClientAPI: Difference between revisions

Line 275: Line 275:
In the file <tt>weave/chrome/content/fx-weave-overlay.js</tt>, find the function <tt>FxWeaveGlue()</tt>, and within the <tt>try</tt> block import your Engine class, instantiate it, and register it with Weave.  Like so:
In the file <tt>weave/chrome/content/fx-weave-overlay.js</tt>, find the function <tt>FxWeaveGlue()</tt>, and within the <tt>try</tt> block import your Engine class, instantiate it, and register it with Weave.  Like so:


<pre>
  function FxWeaveGlue() {
  function FxWeaveGlue() {
   //... etc ...
   //... etc ...
Line 292: Line 293:
   } catch (e) {
   } catch (e) {
   //... etc ...
   //... etc ...
</pre>


To make your engine work in Fennec, you must also add the same code to the function <tt>FennecWeaveGlue()</tt> in the file <tt>weave/chrome/content/fennec-weave-overlay.js</tt>.
To make your engine work in Fennec, you must also add the same code to the function <tt>FennecWeaveGlue()</tt> in the file <tt>weave/chrome/content/fennec-weave-overlay.js</tt>.
1,007

edits