public/script/controller.js
// determined by a custom element specific to the given |service|.
determined by a custom element specific to the given |service|.
determined by a custom element specific to the given |service| .
async initializeService({ label, service, options }) {
        let bindings = null;
        switch (service) {
            case 'Philips Hue':
                bindings = new PhilipsHueBindings(this.#connection, label, options);
                break;
            default:
                this.displayFatalError(`Cannot display unrecognised service: "${service}"`);
                return;
        }
        this.#container.appendChild(bindings.element);
        this.#bindings.push(bindings);
    }
async initializeService ( { label , service , options } ) { let bindings = null ; switch ( service ) { case 'Philips Hue' : bindings = new PhilipsHueBindings ( this . #connection , label , options ) ; break ; default : this . displayFatalError ( ` ${ service } ` ) ; return ; } this . #container . appendChild ( bindings . element ) ; this . #bindings . push ( bindings ) ; }
determined by a custom element specific to the given |service|.
determined by a custom element specific to the given |service| .