Reputation: 302
I want to create an extension with a protocol handler using firfox addon-sdk. So that if i do shan:something it should redirect to some other url like (www.google.com).
Thanks in advance.
Upvotes: 1
Views: 120
Reputation: 43042
To access Components
, i.e. features outside the the SDK modules you will need to use require("chrome")
to import those capabilities.
The rest is already covered by the answer that @noitdart linked.
Upvotes: 2