Allow easier emu testing; clean up unconfigured state logic
This commit is contained in:
@@ -13,7 +13,7 @@ Pebble.addEventListener("appmessage", function (dict) {
|
||||
const cfg = JSON.parse(localStorage.getItem('clay-settings'));
|
||||
|
||||
// report to user if some configuration is missing
|
||||
if (cfg.CLAY_API_HOST == "" || cfg.CLAY_API_KEY == "" || cfg.CLAY_USER == "") {
|
||||
if (!cfg || cfg.CLAY_API_HOST == "" || cfg.CLAY_API_KEY == "" || cfg.CLAY_USER == "") {
|
||||
Pebble.sendAppMessage({ PKJS_LAST_WATCHED: "SOME APP SETTINGS ARE UNSET" });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user