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

Add application manager for client #524

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

elliekwon
Copy link
Contributor

Application manager for client created. This pull request has only structure and test code for checking chrome browser.

@elliekwon elliekwon requested a review from romandev as a code owner November 12, 2017 09:21
Copy link
Member

@romandev romandev left a comment

Choose a reason for hiding this comment

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

I left a comment.


async isCromeBrowser(): Promise<boolean> {
var agent = navigator.userAgent.toLowerCase();
if(agent.indexOf('chrome') != -1){
Copy link
Member

Choose a reason for hiding this comment

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

This is not perfect. For example, Samsung Internet, Opera, Whale browser will also include the chrome keyword in UA string.
Also, Android system WebView also includes chrome keyword in UA string.
You will have to investigate more things.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@elliekwon, if you are in trouble with this, take a look at the previous commit. link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants