Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit 74586c2

Browse files
authored
Fix service variable name in google cast service (#762)
1 parent 10e1281 commit 74586c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/google-cast/extension/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import { requireService } from "nodecg-io-core";
55
module.exports = function (nodecg: NodeCG) {
66
nodecg.log.info("Sample bundle for the google-cast service started.");
77

8-
const template = requireService<GoogleCastClient>(nodecg, "google-cast");
8+
const googleCast = requireService<GoogleCastClient>(nodecg, "google-cast");
99

1010
let previousDevice: GoogleCastClient | undefined = undefined;
1111

12-
template?.onAvailable((castDevice) => {
12+
googleCast?.onAvailable((castDevice) => {
1313
nodecg.log.info("google-cast service available.");
1414
previousDevice = castDevice;
1515

@@ -22,7 +22,7 @@ module.exports = function (nodecg: NodeCG) {
2222
});
2323
});
2424

25-
template?.onUnavailable(() => {
25+
googleCast?.onUnavailable(() => {
2626
nodecg.log.info("google-cast service unavailable.");
2727

2828
if (previousDevice !== undefined) {

0 commit comments

Comments
 (0)