diff --git a/background.js b/background.js index d4beb99..73106d7 100644 --- a/background.js +++ b/background.js @@ -67,6 +67,7 @@ var updatePageInfo = function (url) { var login = function (name, pwd) { // test auth + pwd = encodeURIComponent(pwd); var path = 'https://' + name + ':' + pwd + at + pathBody + 'posts/update'; var jqxhr = $.ajax({url: path, type : 'GET', @@ -89,7 +90,9 @@ var login = function (name, pwd) { }); _getTags(); } else { - // error + // error + var popup = chrome.extension.getViews({type: 'popup'})[0]; + popup.loginFailed(); } }); }; diff --git a/manifest.json b/manifest.json index 9f17cbf..152693f 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "Pinboard Plus", - "version": "1.0.5", + "version": "1.0.6", "description": "A better chrome extension for Pinboard (http://pinboard.in). Easy to know current page has been saved or not.", "browser_action": { "default_icon": "icon_grey_19.png", diff --git a/popup.html b/popup.html index 4ab09f7..faa4988 100644 --- a/popup.html +++ b/popup.html @@ -125,6 +125,7 @@
Loading...