Changes

Jump to: navigation, search

Labs/Ubiquity/Ubiquity 0.1 Author Tutorial

4 bytes removed, 18:40, 13 January 2009
Adding Commands Programmatically
</pre>
Note: If you command file needs to include/load other JS files included in your extension, you can use the following piece of codeat the top of the command js file you are adding to ubiquity.
<pre>
// Load JS libraries
var u = "chrome://feedly/content/app/" + partialURI;
try { var jsl = Cc["@mozilla.org/moz/jssubscript-loader;1"]
.getService(Ci.mozIJSSubScriptLoader);
jsl.loadSubScript( u ); } catch( e ) { throw e; }
}
3
edits

Navigation menu