diff --git a/content/preferences.html b/content/preferences.html
index dcd49bf..1878d6b 100644
--- a/content/preferences.html
+++ b/content/preferences.html
@@ -38,7 +38,7 @@
- Join MailHops
+ Join MailHops
diff --git a/images/openweathermap.png b/images/openweathermap.png
new file mode 100644
index 0000000..2e2860b
Binary files /dev/null and b/images/openweathermap.png differ
diff --git a/js/bootstrap.js b/js/bootstrap.js
index f620d5a..24bbc74 100644
--- a/js/bootstrap.js
+++ b/js/bootstrap.js
@@ -35,7 +35,7 @@ function connected(p) {
"message": MailHops.message,
"response": MailHops.response,
"meta": MailHops.meta,
- "unit": MailHops.unit
+ "options": MailHops.options
});
break;
}
diff --git a/js/mailhops_details.js b/js/mailhops_details.js
index 23dbf1c..62f1ad1 100644
--- a/js/mailhops_details.js
+++ b/js/mailhops_details.js
@@ -25,7 +25,7 @@ function updateContent(msg) {
const route = msg.response.route || [];
const sender = msg.message.sender || null;
- const unit = msg.unit || "mi";
+ const unit = msg.options.unit || "mi";
let client = null;
let items = [];
diff --git a/js/preferences.js b/js/preferences.js
index 0fa74e9..28896b7 100644
--- a/js/preferences.js
+++ b/js/preferences.js
@@ -40,15 +40,15 @@ var mailHopPreferences = {
getting.then(data => {
if (data.api_key) {
self.api_key.value = data.api_key;
- document.getElementById("join-link").innerHTML = 'My Account';
+ document.getElementById("join-link").innerHTML = 'My Account and Dashboard';
document.getElementById("join-link").setAttribute('href', 'https://mailhops.com/account/' + data.api_key);
this.saveAPIKey(true);
}
if (data.owm_key) {
self.owm_key.value = data.owm_key;
}
- if (data.distinace_unit) {
- if (data.distinace_unit == "mi")
+ if (data.unit) {
+ if (data.unit == "mi")
document.getElementById("unit_mi").setAttribute('checked', 'checked');
else
document.getElementById("unit_km").setAttribute('checked', 'checked');
@@ -117,7 +117,7 @@ var mailHopPreferences = {
else
document.getElementById("rate-reset").innerHTML = "Resets in: " + Math.round(data.account.rate.reset / 60 / 60) + " hr.";
- document.getElementById("join-link").innerHTML = 'My Account';
+ document.getElementById("join-link").innerHTML = 'My Account and Dashboard';
document.getElementById("join-link").setAttribute('href','https://mailhops.com/account/'+api_key);
} else if (xmlhttp.status === 401) {
diff --git a/manifest.json b/manifest.json
index 70d9384..0f3efd7 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "__MSG_appName__",
"description": "__MSG_appDesc__",
- "version": "4.0.2",
+ "version": "4.0.3",
"author": "Hopsware LLC",
"developer": {
"name": "Andrew Van Tassel",