update global settings

pull/3110/head
Gordon Williams 2023-11-24 08:36:29 +00:00
parent ed23ccfadc
commit 4fc5fa285a
1 changed files with 3 additions and 2 deletions

View File

@ -28,8 +28,9 @@
function onInit(){
console.log("Loading settings from BangleJs...");
try {
Util.readStorageJSON("owmweather.json", settings=>{
if(settings){
Util.readStorageJSON("owmweather.json", data=>{
if(data){
settings = data;
console.log("Got settings", settings);
document.getElementById("apikey").value = settings.apikey;
console.log("Loaded apikey from BangleJs.");