Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable camera for not HTTPS #306 #307

Closed
wants to merge 3 commits into from

Conversation

ZNick1982
Copy link
Contributor

Done with task.
Added check for chrome and for http connection according task

Spent 3 hours

@ZNick1982
Copy link
Contributor Author

Note: the localization strings added only for English and Russian languages.

@@ -74,6 +74,9 @@ uploadcare.namespace 'locale.translations', (ns) ->
notFound:
title: 'No camera detected'
text: 'Looks like you have no camera connected to this device.'
notHttps:
title: 'Camera does not allowed for not protected connections'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be or not to be

@ZNick1982 ZNick1982 changed the title Disable camera for not HTTPS #306 Disable camera for not HTTPS #306 + Throw something when widget is actually not initialized #284 Feb 15, 2016
@homm
Copy link
Contributor

homm commented Feb 15, 2016

There are should be two separate pull-requests for Camera and intialization errors.

@ZNick1982
Copy link
Contributor Author

Ok, I`ll fix it tonight

@homm
Copy link
Contributor

homm commented Feb 15, 2016

The main Idea was to disable camera source at all. I.e. to hide entire tab, not to show error message to the user. Sorry for not make it clear.

Error message is meaningless for end-user, because he can't do anything with this. Site developer should see the message and decide to exclude the camera tab or to switch to the HTTPS.

@homm
Copy link
Contributor

homm commented Feb 15, 2016

Maybe almost all code should be in __checkCompatibility function. Also, there should not be any user agent checks. It should be disabled for all browsers to avoid confusions.

@ZNick1982 ZNick1982 changed the title Disable camera for not HTTPS #306 + Throw something when widget is actually not initialized #284 Disable camera for not HTTPS #306 Feb 15, 2016
@ZNick1982 ZNick1982 closed this Feb 15, 2016
@ZNick1982 ZNick1982 reopened this Feb 15, 2016
@ZNick1982 ZNick1982 closed this Feb 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants