From e981c8374cda5aef50354d7f4f3c7233ee0ffe7b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 17 Feb 2013 13:23:44 -0500 Subject: [PATCH] add a link to the options page when connection fails --- manifest.json | 2 +- popup.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 23da87f..df5e568 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "minimum_chrome_version": "22", "name": "Web Power Switch Manager", - "version": "1.0", + "version": "1.1", "description": "Quickly control Web Power Switches", "icons": { "128": "images/outlet-128x128.png" diff --git a/popup.js b/popup.js index a88ed94..7ba21e2 100644 --- a/popup.js +++ b/popup.js @@ -14,7 +14,8 @@ function fetchpage(url, callback) { callback(xhr, state); } else { xhr.setstatus = true; - setstatus('Could not connect; check settings'); + setstatus('Could not connect;
check your ' + + 'settings'); console.log('connect error', state); } } @@ -126,7 +127,7 @@ function initpopup(xhr, state) { function setstatus(msg) { var status = document.getElementById('status'); - status.innerText = msg; + status.innerHTML = msg; status.style.visibility = msg ? '' : 'hidden'; status.style.float = msg ? '' : 'left'; status.style.position = msg ? '' : 'absolute'; -- 2.39.5