Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 670 Bytes

browser_detection.md

File metadata and controls

7 lines (4 loc) · 670 Bytes

Browser detection

Browser detection can be useful sometimes but should be avoided.

To detect the current browser, you can use the global Liferay.Browser object and its various functions.

You'll notice that this Liferay.Browser object actually wraps BrowserSnifferUtil, meaning that both the server (java) and client (js) will be in "sync".