]> git.proxmox.com Git - mirror_novnc.git/blobdiff - core/util/browser.js
Move UI.isSafari into core/util/browser.js
[mirror_novnc.git] / core / util / browser.js
index b2b19fa26efe66eef983355f6fcda80f776ed89f..088997b12a839617b182cb9052a530326ce2bd0b 100644 (file)
@@ -64,6 +64,11 @@ export function isIOS() {
             !!(/ipod/i).exec(navigator.platform));
 }
 
+export function isSafari() {
+    return navigator && (navigator.userAgent.indexOf('Safari') !== -1 &&
+                         navigator.userAgent.indexOf('Chrome') === -1);
+}
+
 export function isIE() {
     return navigator && !!(/trident/i).exec(navigator.userAgent);
 }