@cambly/syntax-core 4.5.0 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -657,7 +657,13 @@ var hasSetupGlobalListeners = false;
657
657
  var currentModality = null;
658
658
  var changeHandlers = /* @__PURE__ */ new Set();
659
659
  var hasEventBeforeFocus = false;
660
- var isMac = typeof window !== "undefined" && window.navigator != null ? /^Mac/.test(window.navigator.platform) : false;
660
+ var isMac = (
661
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
662
+ typeof window !== "undefined" && window.navigator != null ? (
663
+ // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
664
+ /^Mac/.test(window.navigator.platform)
665
+ ) : false
666
+ );
661
667
  function isValidKey(e) {
662
668
  return !(e.metaKey || !isMac && e.altKey || e.ctrlKey);
663
669
  }