From fa645c164f5647b434a2149c595cff2e62cd4e82 Mon Sep 17 00:00:00 2001 From: David LAURENT Date: Thu, 24 Nov 2016 10:56:14 +0100 Subject: [PATCH] bugfix #31 extension doesnt work if url to json in options is uninitialized --- extension/chrome/src/js/storage.js | 4 ++-- extension/chrome/src/manifest.json | 2 +- history | 4 ++++ version | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/extension/chrome/src/js/storage.js b/extension/chrome/src/js/storage.js index ff21b95..5e04db5 100644 --- a/extension/chrome/src/js/storage.js +++ b/extension/chrome/src/js/storage.js @@ -71,11 +71,11 @@ var extensionStorage = (function() { function loadGroupsArray(callback) { cloudStorage.get(null, function(items) { if (callback) { - const groups = JSON.parse(items[REVIEWERS_ARRAY_KEY]); + const groups = items[REVIEWERS_ARRAY_KEY]; if (!groups) { return callback([]); } - callback(groups); + callback(JSON.parse(groups)); } }); } diff --git a/extension/chrome/src/manifest.json b/extension/chrome/src/manifest.json index 14bff13..c188c7e 100644 --- a/extension/chrome/src/manifest.json +++ b/extension/chrome/src/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "Bitbucket Server Extension", "description": "Allow to add group of reviewers for pull request in bitbucket server + other features", - "version": "2.2.9", + "version": "2.2.11", "permissions": [ "storage", "alarms", diff --git a/history b/history index 25ffe15..de2518b 100644 --- a/history +++ b/history @@ -1,3 +1,7 @@ +2.2.11 +=================== +- bugfix #31: extension doesnt work with uninitialized 'url to json' in options panel + 2.2.10 =================== - feature: add support for centralized reviewers lists diff --git a/version b/version index 0d3ad67..0b6e431 100644 --- a/version +++ b/version @@ -1 +1 @@ -2.2.10 +2.2.11