summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/util/browser.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/util/browser.js b/core/util/browser.js
index 8262692..1554801 100644
--- a/core/util/browser.js
+++ b/core/util/browser.js
@@ -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);
}