@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 +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
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 =
|
|
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
|
}
|