export class HardwareAPI { /**
     * Indicates whether this instance of jspsych has opened a hardware connection through our browser
     * extension
     **/ hardwareConnected = false ; constructor ( ) { document . addEventListener ( "jspsych-activate" , ( evt ) => { this . hardwareConnected = true ; } ) ; } param mess author Daniel Rivas
     *
      hardware ( mess ) { const jspsychEvt = new CustomEvent ( "jspsych" , { detail : mess } ) ; document . dispatchEvent ( jspsychEvt ) ; } }