]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Add comment for browser and platform detection
authorSamuel Mannehed <samuel@cendio.se>
Thu, 24 Oct 2019 14:43:07 +0000 (16:43 +0200)
committerSamuel Mannehed <samuel@cendio.se>
Thu, 2 Jan 2020 10:30:34 +0000 (11:30 +0100)
core/util/browser.js

index 8262692c00b76730075fafb3fca9a37607141f37..1554801422999b3dcbb2ec43914c034fa343be94 100644 (file)
@@ -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);
 }