Do not render bookmarks if api returned error

This commit is contained in:
Dan Sosedoff
2014-12-31 18:20:40 -06:00
parent fc5d7c2045
commit 5f7b18fe0e
2 changed files with 297 additions and 289 deletions

View File

@@ -335,6 +335,11 @@ function addShortcutTooltips() {
function showConnectionSettings() {
getBookmarks(function(data) {
// Do not add any bookmarks if we've got an error
if (data.error) {
return;
}
if (Object.keys(data).length > 0) {
// Set bookmarks in global var
bookmarks = data;