Labs/Jetpack/JEP/30A: Difference between revisions

Jump to navigation Jump to search
(Created page with '{{draft}} == JEP 30 - onInstall Event == * Champion: Aza Raskin <aza at mozilla dot com> * Editors: Drew <drew at mozilla dot com> * Status: Implementing * Type: API Track * Cr…')
 
Line 23: Line 23:


Upon install of the Jetpack, this function gets called.
Upon install of the Jetpack, this function gets called.
=== Examples ===
<pre>
jetpack.onInstall(function(){
  jetpack.tabs.open("http://example.com/firstRun.html" );
});
</pre>
<pre>
jetpack.onInstall(function(){
  jetpack.notifications.show("Use the context menu, Luke!");
});
</pre>
577

edits

Navigation menu