From ac2c714b5a8778072b27411c4dea8469a0bb5834 Mon Sep 17 00:00:00 2001 From: rom4nik Date: Sun, 17 Jul 2022 16:11:07 +0200 Subject: [PATCH] Revert "Pebble: pretend the clay-settings key is always present (but empty per default) in the localStorage" This reverts commit 42901a295d49137506a3479d5c85c3cca7772f53. Fixes #2720 (Setting clay-settings in localstorage to {} instead of null breaks configuration of a Pebble watchface). --- .../main/assets/app_config/js/gadgetbridge_boilerplate.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js b/app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js index 297ebcd4c..679eeef30 100644 --- a/app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js +++ b/app/src/main/assets/app_config/js/gadgetbridge_boilerplate.js @@ -20,12 +20,8 @@ if (window.Storage){ }).bind(Storage.prototype.setItem); Storage.prototype.getItem = (function(key) { -// console.log("I am about to return " + prefix + key); - var def = null; - if(key == 'clay-settings') { - def = '{}'; - } - return this.call(localStorage,prefix + key) || def; + //GBjs.gbLog("I am about to return " + prefix + key); + return this.call(localStorage,prefix + key); }).bind(Storage.prototype.getItem); }