kclyu / rpi-webrtc-streamer

This repo's objective is providing something like Web Cam server on the most popular Raspberry PI hardware. By integrating [WebRTC](https://webrtc.org/native-code/) and Raspberry PI, we can stream the Raspberry camera feed to browser or native client which talks WebRTC.
Other
617 stars 108 forks source link

typo? #120

Open ArosPrince opened 3 years ago

ArosPrince commented 3 years ago

Hi, I am not a JS expert, but get member function in config_params.mjs looks a bit weird:

get(key) {
    if (this.isKeyExist(key)) return this.configParams[key][kValue];
    else throw new Error(`Unknown config ${item_key} `);
}

I think there should be ${key} in the error template string. Right?

kclyu commented 3 years ago

It's like a typo that can be distinguished even if you're not an expert. I am also not an expert. ^^ Thanks for pointing out.