Browse Source

shorten errors

Andrew Dolgov 2 years ago
parent
commit
13eefafcaf
2 changed files with 8 additions and 8 deletions
  1. 5 5
      background.js
  2. 3 3
      options.js

+ 5 - 5
background.js

@@ -62,32 +62,32 @@ function ping() {
 
 								localStorage["proxy_reachable"] = 1;
 							} else if (resp.status == 401) {
-								set_badge('e05', 'red');
+								set_badge('er5', 'red');
 								set_title('Ping refused, check your credentials');
 
 								localStorage["proxy_reachable"] = 0;
 							} else {
-								set_badge('e04', 'red');
+								set_badge('er4', 'red');
 								set_title('Ping request failed');
 
 								localStorage["proxy_reachable"] = 0;
 							}
 						})
 						.catch(function(err) {
-							set_badge('e03', 'red');
+							set_badge('er3', 'red');
 							set_title('Ping request failed');
 
 							localStorage["proxy_reachable"] = 0;
 						});
 				} else {
-					set_badge('e02', 'red');
+					set_badge('er2', 'red');
 					set_title('Connection request failed');
 
 					localStorage["proxy_reachable"] = 0;
 				}
 			})
 			.catch(function(status, err) {
-				set_badge('e01', 'red');
+				set_badge('er1', 'red');
 				set_title("Proxy connection failed");
 
 				localStorage["proxy_reachable"] = 0;

+ 3 - 3
options.js

@@ -17,7 +17,7 @@ function save() {
 
 window.onload = function() {
 
-	var form = $("options_form");	
+	var form = $("options_form");
 
 	console.log("init options form: " + form);
 
@@ -37,5 +37,5 @@ window.onload = function() {
 	} catch (e) {
 		console.warn(e);
 	}
-	
-};
+
+};