Added category icon, renamed StreamDeck

This commit is contained in:
Zack Hoherchak 2022-02-28 16:31:38 -05:00
commit 995165d58b
6 changed files with 11 additions and 12 deletions

View file

@ -8,7 +8,7 @@ const fadeColor = function (col, amt) {
return '#' + (g | (b << 8) | (r << 16)).toString(16).padStart(6, 0);
};
StreamDeck.onConnected(({ appInfo }) => {
$SD.onConnected(({ appInfo }) => {
if (appInfo?.colors) return;
const clrs = appInfo.colors;
const node = document.getElementById('#sdpi-dynamic-styles') || document.createElement('style');

View file

@ -368,7 +368,7 @@ class ELGSDStreamDeck {
}
}
var StreamDeck = new ELGSDStreamDeck();
var $SD = new ELGSDStreamDeck();
/**
* connectElgatoStreamDeckSocket
@ -381,5 +381,5 @@ var StreamDeck = new ELGSDStreamDeck();
* @param {string} actionInfo - Context is an internal identifier used to communicate to the host application.
*/
function connectElgatoStreamDeckSocket() {
StreamDeck.connect(arguments);
$SD.connect(arguments);
}