Skip to content

Commit

Permalink
Fix missing provider when updating to v2.0.2 (#6)
Browse files Browse the repository at this point in the history
* Fix missing provider when updating to v2.0.2

* Default to weatherApi
  • Loading branch information
jahands authored May 21, 2021
1 parent e942db3 commit d41411a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/com.jk.weather.sdPlugin/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"Icon": "resources/pluginIcon",
"PropertyInspectorPath": "pi/main_pi.html",
"URL": "https://github.com/JaouherK",
"Version": "2.1.0",
"Version": "2.1.1",
"OS": [
{
"Platform": "mac",
Expand Down
2 changes: 1 addition & 1 deletion Sources/com.jk.weather.sdPlugin/pi/main_pi.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function openPage(site) {
}

function getProviderUrl() {
const provider = document.getElementById("provider").value;
const provider = document.getElementById("provider").value || 'weatherApi';
let url;
switch (provider) {
case "weatherApi":
Expand Down
2 changes: 1 addition & 1 deletion Sources/com.jk.weather.sdPlugin/plugin/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function connectElgatoStreamDeckSocket(
jsonObj.payload.settings.hasOwnProperty("apiKey")
) {
apiKey = jsonObj.payload.settings["apiKey"];
provider = jsonObj.payload.settings["provider"];
provider = jsonObj.payload.settings["provider"] || 'weatherApi';
}
} else if (jsonObj["event"] === "keyDown") {
const json = {
Expand Down

0 comments on commit d41411a

Please sign in to comment.