p5.js-web-editor/client/utils/device.js

2 lines
107 B
JavaScript
Raw Normal View History

export const isMac = () => navigator.userAgent.toLowerCase().indexOf('mac') !== -1; // eslint-disable-line