Skip to content

Commit

Permalink
Lint and Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
FaeyUmbrea committed Oct 27, 2022
1 parent ce2cc3b commit 9f28ab5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Version 1.2.3

Added OBS Remote Functionality!
Replaced original onExitObs with onStopStreaming because OBS would close before the final commands got executed.
## Version 1.1.1

Fixes to the Director Window
Expand Down
4 changes: 3 additions & 1 deletion src/utils/obs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ async function getWebsocket(): Promise<OBSWebSocket> {
export async function registerOBSEvents() {
const useWS = getSetting('enableOBSWebsocket') as boolean;
if (useWS) {
(await getWebsocket()).addListener("StreamStateChanged", (returnValue) => {if(returnValue.outputState == "OBS_WEBSOCKET_OUTPUT_STOPPED") handleOBS('onStopStreaming')});
(await getWebsocket()).addListener('StreamStateChanged', (returnValue) => {
if (returnValue.outputState == 'OBS_WEBSOCKET_OUTPUT_STOPPED') handleOBS('onStopStreaming');
});
} else {
window.addEventListener('obsStreamingStopped', async () => await handleOBS('onStopStreaming'));
}
Expand Down
2 changes: 0 additions & 2 deletions src/utils/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ function registerSetting(settingName: string, config: Record<string, unknown>):
});
}



export function getSetting(settingName: string): any {
return getGame().settings.get('obs-utils', settingName);
}
Expand Down

0 comments on commit 9f28ab5

Please # to comment.