Skip to content

Commit

Permalink
patched issues
Browse files Browse the repository at this point in the history
  • Loading branch information
f00d4tehg0dz committed Aug 21, 2022
1 parent ed2cbc0 commit c6ad79e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
Binary file modified Release/com.f00d4tehg0dz.cookieclicker.streamDeckPlugin
Binary file not shown.
7 changes: 5 additions & 2 deletions com.f00d4tehg0dz.cookieclicker.sdPlugin/cookieclicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@
if (jsonObj.hasOwnProperty('actionInfo')) {
actionName = jsonObj.actionInfo.action;
}

let settings = $SD.actionInfo.payload.settings;
if (settings.nameKey) {
$("#nameKey").val(settings.nameKey);
}

let settings = $SD.actionInfo.payload.settings;
if (settings.nameKey == null) {
$("#nameKey").val(null);
}
});
}
function openGithub() {
Expand Down
8 changes: 4 additions & 4 deletions com.f00d4tehg0dz.cookieclicker.sdPlugin/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ if ($SD) {

xhr.setRequestHeader("Accept", "application/json");
xhr.setRequestHeader("Content-Type", "application/json");
xhr.setRequestHeader('xxx', "xxx");
//xhr.setRequestHeader('x-access-token', "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmb28iOiJmdWNrIiwiaWF0IjoxNjYxMTA3NTY5fQ.NF-Uc_3MzT5DxvXxwx5qN_6d2hWUUqJBJZpD2qmHrRI");

xhr.onload = () => console.log(xhr.responseText);
const name = settings.nameKey;
Expand All @@ -103,11 +103,11 @@ if ($SD) {
console.log(xhr.responseText);
} else {
// Runs when it's not
xhr.open("POST", "https://f00d.me/api/leaderboard");
xhr.open("POST", "https://f00d.me/api/leaderboard/");

xhr.setRequestHeader("Accept", "application/json");
xhr.setRequestHeader("Content-Type", "application/json");
xhr.setRequestHeader('xxx', "xxx");
//xhr.setRequestHeader('x-access-token', "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmb28iOiJmdWNrIiwiaWF0IjoxNjYxMTA3NTY5fQ.NF-Uc_3MzT5DxvXxwx5qN_6d2hWUUqJBJZpD2qmHrRI");


const name = settings.nameKey;
Expand Down Expand Up @@ -243,4 +243,4 @@ if ($SD) {
}

}
}
}
6 changes: 4 additions & 2 deletions com.f00d4tehg0dz.cookieclicker.sdPlugin/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@
],
"SDKVersion": 2,
"Author": "Adrian Chrysanthou",
"Category": "Cookie Clicker [f00d4tehg0dz]",
"CategoryIcon": "icons/category-icon",
"CodePath": "index.html",
"Description": "A CookieClicker Status plugin developed by Adrian Chrysanthou. You can find more information about this plugin at https://github.com/f00d4tehg0dz/elgato-streamdeck-cookie-clicker. Please report any issues you see on the project's Github page. I welcome any feedback.",
"Name": "CookieClicker Status",
"Name": "Cookie Clicker",
"Icon": "icon",
"URL": "https://github.com/f00d4tehg0dz/elgato-streamdeck-cookie-clicker",
"PropertyInspectorPath": "cookieclicker.html",
"Version": "3.1",
"Version": "3.4",
"OS": [
{
"Platform": "mac",
Expand Down

0 comments on commit c6ad79e

Please sign in to comment.