alvin
alvin

Reputation: 703

Read firefox extension version from the extension code itself

I'm developing a firefox extension and I'm looking for a way to access (read) the version of my extension from the extension code itself.

Thanks.

Upvotes: 1

Views: 140

Answers (2)

sdwilsh
sdwilsh

Reputation: 4682

This post provides the APIs you would need to use to make this work. Even has sample code!

Upvotes: 1

i_am_jorf
i_am_jorf

Reputation: 54640

You can use nsIFile and read your own .rdf, I suppose.

Upvotes: 0

Related Questions