From 90bfebe43dccb61f3e9d3a75fc92d1f6709ee632 Mon Sep 17 00:00:00 2001 From: Zack Hoherchak Date: Wed, 9 Mar 2022 11:16:14 -0500 Subject: [PATCH] moved didRecieveGlobalSettings to stream deck --- src/com.elgato.template.sdPlugin/libs/js/action.js | 9 --------- src/com.elgato.template.sdPlugin/libs/js/stream-deck.js | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/com.elgato.template.sdPlugin/libs/js/action.js b/src/com.elgato.template.sdPlugin/libs/js/action.js index 715cf38..3dc9ffa 100644 --- a/src/com.elgato.template.sdPlugin/libs/js/action.js +++ b/src/com.elgato.template.sdPlugin/libs/js/action.js @@ -21,15 +21,6 @@ class ELGSDAction { return this; } - /** - * Registers a callback function for the didReceiveGlobalSettings event, which fires when calling getGlobalSettings - * @param {function} fn - */ - onDidReceiveGlobalSettings(fn) { - this.#on(Events.didReceiveGlobalSettings, (jsn) => fn(jsn)); - return this; - } - /** * Registers a callback function for the keyDown event, which fires when pressing a key down * @param {function} fn diff --git a/src/com.elgato.template.sdPlugin/libs/js/stream-deck.js b/src/com.elgato.template.sdPlugin/libs/js/stream-deck.js index ae6390c..d52ff30 100644 --- a/src/com.elgato.template.sdPlugin/libs/js/stream-deck.js +++ b/src/com.elgato.template.sdPlugin/libs/js/stream-deck.js @@ -383,6 +383,15 @@ class ELGSDStreamDeck { this.#on(Events.systemDidWakeUp, (jsn) => fn(jsn)); return this; } + + /** + * Registers a callback function for the didReceiveGlobalSettings event, which fires when calling getGlobalSettings + * @param {function} fn + */ + onDidReceiveGlobalSettings(fn) { + this.#on(Events.didReceiveGlobalSettings, (jsn) => fn(jsn)); + return this; + } } const $SD = new ELGSDStreamDeck();