~heckyel/plyr

b050fde276b181464e0ccbf2d3ac7835032517fd — Benny739 2 years ago 32444c9
added iPad to isIos (#2191)

1 files changed, 3 insertions(+), 1 deletions(-)

M src/js/utils/browser.js
M src/js/utils/browser.js => src/js/utils/browser.js +3 -1
@@ 8,7 8,9 @@ const browser = {
  isEdge: window.navigator.userAgent.includes('Edge'),
  isWebkit: 'WebkitAppearance' in document.documentElement.style && !/Edge/.test(navigator.userAgent),
  isIPhone: /(iPhone|iPod)/gi.test(navigator.platform),
  isIos: /(iPad|iPhone|iPod)/gi.test(navigator.platform),
  isIos:
    (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1) ||
    /(iPad|iPhone|iPod)/gi.test(navigator.platform),
};

export default browser;