@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.mjs CHANGED
@@ -632,7 +632,13 @@ var hasSetupGlobalListeners = false;
632
632
  var currentModality = null;
633
633
  var changeHandlers = /* @__PURE__ */ new Set();
634
634
  var hasEventBeforeFocus = false;
635
- var isMac = typeof window !== "undefined" && window.navigator != null ? /^Mac/.test(window.navigator.platform) : false;
635
+ var isMac = (
636
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
637
+ typeof window !== "undefined" && window.navigator != null ? (
638
+ // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
639
+ /^Mac/.test(window.navigator.platform)
640
+ ) : false
641
+ );
636
642
  function isValidKey(e) {
637
643
  return !(e.metaKey || !isMac && e.altKey || e.ctrlKey);
638
644
  }