init encap
This commit is contained in:
@@ -97,7 +97,7 @@ function GHOBS(config) {
|
||||
return this.websocket.setSceneItemProperties({"item": item, "scene-name": scene, "visible": visible});
|
||||
};
|
||||
|
||||
this.toggleVisible(item) => {
|
||||
this.toggleVisible = (item) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.websocket.getSceneItemProperties({"item": item})
|
||||
.then(data => {
|
||||
@@ -116,7 +116,7 @@ function GHOBS(config) {
|
||||
return this.setVisible(item, scene, false);
|
||||
};
|
||||
|
||||
this.switchToScene(scene) => {
|
||||
this.switchToScene = (scene) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (this.currentScene === scene) {
|
||||
resolve(true);
|
||||
|
||||
Reference in New Issue
Block a user