widget.version
Description:
This readonly attribute corresponds to the widget element's version attribute in the configuration document, if one was declared. Otherwise, it will return an empty string.
Example:
//
// Any extension script (e.g. /background.js)
//
// Returns the version of the widget, as declared in config.xml
var version = widget.version;
This article is licensed under a Creative Commons Attribution 3.0 Unported license.
Comments
You must be logged in to write a comment. If you're not a registered member, please sign up.