From 44cd7f20d9bd1f0e79b853a5cb7f8c78558dac2f Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 25 Mar 2016 19:01:24 +0400 Subject: Exception handling --- css/main.css | 6 ++++++ js/main.js | 4 ++-- options.html | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/css/main.css b/css/main.css index defbebe..aa157ac 100644 --- a/css/main.css +++ b/css/main.css @@ -47,6 +47,12 @@ a { outline: none; } +.quote-item a { + border-bottom: 1px solid #0B0BBD; + padding-bottom: 6px; + color: blue; +} + .active { background: #CECECE; } diff --git a/js/main.js b/js/main.js index eea322b..93e8c46 100644 --- a/js/main.js +++ b/js/main.js @@ -229,12 +229,12 @@ function HubTab() { message = error.message || ''; if (message && message.toLowerCase() == 'bad credentials') { - $('.main-content').replaceWith('

Oops! Seems to be a problem with your API token. Could you verify the token in `Githunt Options`.

'); + $('.main-content').replaceWith('

Oops! Seems to be a problem with your API token. Could you verify the API token you entered in extension options.

'); // Reset the token filterStorage.getStorage().removeItem(tokenStorageKey); } else if (message && (message.indexOf('rate limit') !== -1)) { - $('.main-content').replaceWith('

Oops! Seems like you did not set the API token. Wait an hour for github to refresh your rate limit or better add a token in `Githunt Options` to hunt more.

'); + $('.main-content').replaceWith('

Oops! Seems like you did not set the API token. Wait another hour for github to refresh your rate limit or better add a token in `Githunt Options` to hunt more.

'); } else { $('.main-content').replaceWith('Oops! Could you please refresh the page.'); } diff --git a/options.html b/options.html index a28b950..9b70953 100644 --- a/options.html +++ b/options.html @@ -21,7 +21,7 @@
-

To make sure that you keep hunting smoothly, you may generate and add a personal API token to override the Rate Limit imposed by Github

+

To make sure that you keep hunting smoothly, you may generate a token and add it below to override the Rate Limit imposed by Github

Add API Token

-- cgit v1.3