# all files / addon/-private/ env-detection.js

100% Statements 3/3
60% Branches 3/5
100% Functions 2/2
100% Lines 3/3

    1
    2
    3
    4
    5
    6
    7
    8
    9

    1×
    2×
    2×

     'use strict';

    export function isSafari() {
      return /constructor/i.test(window.HTMLElement) || (function (p) {
        return p.toString() === "[object SafariRemoteNotification]";
      })(!window['safari'] || (typeof safari !== 'undefined' && safari.pushNotification));
    }