Closed botiapa closed 3 years ago
check_resolution should be camelCase and you can do Array.includes(element) instead of a boolean and loop
So supported.includes([height, width]) or something similar
Pushed the fixes, I had to use array.some instead, because I believe includes cannot be used with objects (like an array).
This is because [1920, 1080] == [1920, 1080]
is false
.
Fixes https://github.com/ShayBox/Mon2Cam/issues/42
I think it's mergeable however I thought you might want to have a look at it first.