Expose Clay version

This commit is contained in:
Keegan
2016-06-14 21:59:10 -07:00
parent 2f9e36bdb2
commit 9e344d527b
3 changed files with 14 additions and 1 deletions
+2
View File
@@ -4,6 +4,7 @@ var configPageHtml = require('./tmp/config-page.html');
var toSource = require('tosource');
var standardComponents = require('./src/scripts/components');
var deepcopy = require('deepcopy/build/deepcopy.min');
var version = require('./package.json').version;
/**
* @param {Array} config - the Clay config
@@ -38,6 +39,7 @@ function Clay(config, customFn, options) {
watchToken: '',
userData: {}
};
self.version = version;
/**
* Populate the meta with data from the Pebble object. Make sure to run this inside