]> git.wh0rd.org Git - chrome-ext/web-power-switch.git/commitdiff
mark blank outlet names as unnamed v1.2 v2.0
authorMike Frysinger <vapier@gentoo.org>
Mon, 15 Apr 2013 03:27:45 +0000 (23:27 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 15 Apr 2013 03:29:32 +0000 (23:29 -0400)
manifest.json
popup.js

index df5e5689139c077041577a9f6b5ad15925d125f0..241098fd3b1961ce23ba6a2f945284ab90395d41 100644 (file)
@@ -2,7 +2,7 @@
   "manifest_version": 2,
   "minimum_chrome_version": "22",
   "name": "Web Power Switch Manager",
-  "version": "1.1",
+  "version": "1.2",
   "description": "Quickly control Web Power Switches",
   "icons": {
     "128": "images/outlet-128x128.png"
index 189bbb74d071ab6d74bdb4f2d7b37bd58df6867e..640aa5bb0c03ea23440fabdb54a3e2351106cec8 100644 (file)
--- a/popup.js
+++ b/popup.js
@@ -136,7 +136,10 @@ function initpopup(xhr, state) {
 
                row = tbl.insertRow(-1);
                cell = row.insertCell(-1);
-               cell.innerText = outlet_name + ':';
+               if (outlet_name === '')
+                       cell.innerHTML = '<i>unnamed</i>';
+               else
+                       cell.innerText = outlet_name + ':';
                cell = row.insertCell(-1);
                button = document.createElement('input');
                button.type = 'button';