[Pkg-mozext-commits] [greasemonkey] 13/41: Update sync.js (3.1beta1 => 3.1)
David Prévot
taffit at moszumanska.debian.org
Thu Apr 30 22:06:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository greasemonkey.
commit 293445964ffd82576f84b33d5538f7ac014cc79f
Author: janekptacijarabaci <janekptacijarabaci at users.noreply.github.com>
Date: Mon Mar 23 13:51:31 2015 +0100
Update sync.js (3.1beta1 => 3.1)
---
modules/sync.js | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/sync.js b/modules/sync.js
index 91262b4..23317f7 100644
--- a/modules/sync.js
+++ b/modules/sync.js
@@ -139,6 +139,12 @@ ScriptStore.prototype = {
var names = storage.listValues();
for (var i = 0, name = null; name = names[i]; i++) {
var val = storage.getValue(name);
+ try {
+ val = JSON.parse(val);
+ } catch (e) {
+ dump('JSON parse error? ' + uneval(e) + '\n');
+ continue;
+ }
record.cleartext.values[name] = val;
totalSize += name.length;
totalSize += val.length || 4; // 4 for number / bool (no length).
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git
More information about the Pkg-mozext-commits
mailing list