BastiaanJansen/simple-vue-camera

How to catch permission denied (properly?)

Alpha1337k opened this issue · 3 comments

Hi there,

I am new to vue and currently using your extension. There is a possibility that the permissions of the camera get denied, and i dont see a 'easy' / implemented way to catch such an error. Is there something im missing?

If not, I do have a fix available, in the form of a @error callback if you are interested.

Thanks,

Hi,

You can check if a permission is granted yourself. (See Stackoverflow)

If you have a better solution, I welcome you to create a pull request!

Thanks, but its unfortunately not 100% what im looking for; I need to know if the permissions were accepted at the time of the request (eh..). A simple try-catch block would do the trick. I will make a pull request, so you can see what i mean.

Thank you for your contribution. I just published version 1.1.1 with your fix.