How do I limit the use of a web application so that it can be used by Chrome?

Asked

Viewed 126 times

0

My application is based on Java and made in Genexus.

I want it to be impossible to use my application outside of Google Chrome.

You can implement this limitation?

I did not find in my research this specific content, I would like the help of the community.

Thank you very much!

  • 3

    This is a somewhat... unusual question. Why limit to Chrome?

  • In other browsers there may be conflicts with the styles and responsiveness of the site.

  • 2

    And it’s not better to adapt css to be cross-browser?

  • 1

    I suggest you fix your CSS, especially if the style hinders usability in other browsers. Think how horrible to access your site by firefox and receive a message 'Wrong Browser! ', or worse...

  • The message would be more friendly... "Please use Chrome.", ahahahahaha. But your suggestions are good because already being in the web environment, the application should be multiplatform

2 answers

1

  • This is just the case that I would like to implement in the application. Thank you very much, Gustavo. I will study this function and try to put into practice!

1

You can do it using Browserid as Gustavo suggested. But if you want to do this limitation to avoid unexpected bugs due to lack of support for one or more features, I recommend using a library like modernizr (https://modernizr.com). Limiting an application to only running on one browser is not wrong, just inadvisable.

  • Modernizr detects and reports problems in resources so that then, aware of these problems, I can solve them? She suggests resolutions as well?

  • Modernizr é uma pequena biblioteca Javascript que detecta a disponibilidade das novas características do HTML5 e CSS3 nos browsers. Muitas destas características já estão implementadas nos browsers, mas é muito chato você decorar quais novidades os browsers já estão suportando. O que a Modernizr faz é simples: ela te diz quais features um determinado browser suporta e insere classes no HTML para que você possa utilizar para fazer uma versão alternativa de visual ou solução.

  • I tried to write in a single reply but I sent it by accident. Take a look at this Tableless article, I think it takes away most of your doubts:

  • http://tableless.com.br/utilizando-a-biblioteca-modernizr/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.