mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-28 04:46:57 -04:00
minified does not work in the emulator or iOS so move settings iteration to utils.prepareSettingsForAppMessage()
This commit is contained in:
@@ -4,7 +4,7 @@ var configPageHtml = require('./tmp/config-page.html');
|
||||
var toSource = require('tosource');
|
||||
var standardComponents = require('./src/scripts/components');
|
||||
var utils = require('./src/scripts/lib/utils');
|
||||
var _ = require('./src/scripts/vendor/minified')._;
|
||||
|
||||
/**
|
||||
* @param {Array} config - the Clay config
|
||||
* @param {function} [customFn] - Custom code to run from the config page. Will run
|
||||
@@ -165,13 +165,7 @@ Clay.prototype.getSettings = function(response, convert) {
|
||||
|
||||
localStorage.setItem('clay-settings', JSON.stringify(settings));
|
||||
|
||||
if (convert === false) {
|
||||
return settings;
|
||||
} else {
|
||||
return _.mapObj(settings, function(key, value) {
|
||||
return utils.prepareForAppMessage(value);
|
||||
});
|
||||
}
|
||||
return convert === false ? settings : utils.prepareSettingsForAppMessage(settings);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user