You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(config.runsInApp)log(`Failed to save settings: ${e}`);
609
620
}
621
+
}
610
622
611
-
letquests=[{'key':'showWindspeed',
612
-
'q':'Do you want display the windspeed on the widget?'},
613
-
{'key':'showWindArrow','q':'If using windspeed, do you want to display the wind direction as an arrow?'},
614
-
{'key':'showPrecipitation','q':'Do you want to display precipitation information?'},
615
-
{'key':'showCloudCover','q':'Do you want to show the line display of the cloud cover?'},
616
-
{'key':'showHumidity','q':'Do you want to show the line display of the humidity level?'},
617
-
{'key':'showLegend','q':'Do you want to display the legend at the top of the widget?'},
618
-
{'key':'showAlerts','q':'Do you want to show alerts in your area? A yellow warning triangle for each weather alert in your area will be displayed. Tapping the widget will take you to the OpenWeather page in Safari.'}]
619
-
620
-
awaitquests.reduce(async(memo,i)=>{
621
-
awaitmemo
622
-
623
-
if(!(i.keyinsettings)){
624
-
letq=newAlert()
625
-
q.message=String(i.q)
626
-
q.title='Setup'
627
-
q.addAction('Yes')
628
-
q.addAction('No')
629
-
a=awaitq.presentSheet()
630
-
settings[i.key]=(a==0)?true:false
623
+
asyncfunctionpromptSettings(){
624
+
constsettingsPrompts=[
625
+
{key: 'apiKey',question: 'Please paste in your OpenWeatherMap API Key',type: 'text'},
0 commit comments