Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Read Safari extension version from the extension code itself

Tags:

version

safari

I would like to report used extension version to service. It there any way to read extension version number from within the extension?

like image 211
biesiad Avatar asked Feb 06 '12 17:02

biesiad


1 Answers

You can access the version using the displayVersion property of the SafariExtension class.

console.log(safari.extension.displayVersion);
// => "1.0"

API Documentation

like image 113
David Tuite Avatar answered Oct 05 '22 00:10

David Tuite