All files / client/utils metaKey.js

80% Statements 4/5
62.5% Branches 5/8
100% Functions 1/1
80% Lines 4/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 171x 1x 1x               1x            
const metaKey = (() => {
  Eif (navigator != null && navigator.platform != null) {
    return /^MAC/i.test(navigator.platform) ?
      'Cmd' :
      'Ctrl';
  }
 
  return 'Ctrl';
})();
 
const metaKeyName = metaKey === 'Cmd' ? '\u2318' : 'Ctrl';
 
export {
  metaKey,
  metaKeyName,
};