MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / getRecordSceneValues

Function getRecordSceneValues

scripts/hsr/record-runner.mjs:71–84  ·  view source on GitHub ↗
(mode, sceneText = "")

Source from the content-addressed store, hash-verified

69}
70
71export function getRecordSceneValues(mode, sceneText = "") {
72 const custom = sanitizeSceneText(sceneText);
73 if (custom.length > 0) {
74 return Object.freeze([custom, `${custom} [2]`, `${custom} [3]`]);
75 }
76
77 if (mode === "widget") {
78 return Object.freeze(["Live Update One", "Live Update Two", "Live Update Three"]);
79 }
80 if (mode === "router") {
81 return Object.freeze(["Router Update One", "Router Update Two", "Router Update Three"]);
82 }
83 throw new Error("mode must be widget or router");
84}
85
86function sleep(ms) {
87 return new Promise((resolveSleep) => {

Callers 2

runRecordSequenceFunction · 0.85

Calls 1

sanitizeSceneTextFunction · 0.85

Tested by

no test coverage detected