Add comment for browser and platform detection

pull/36/head
Samuel Mannehed 6 years ago committed by Lauri Kasanen
parent e7a5aa271e
commit 2f43cead79

@ -79,6 +79,13 @@ try {
}
export const hasScrollbarGutter = _hasScrollbarGutter;
/*
* The functions for detection of platforms and browsers below are exported
* but the use of these should be minimized as much as possible.
*
* It's better to use feature detection than platform detection.
*/
export function isMac() {
return navigator && !!(/mac/i).exec(navigator.platform);
}

Loading…
Cancel
Save