We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8cfea65 + fb5b6df commit 6c6906dCopy full SHA for 6c6906d
.eslintrc.js
@@ -19,6 +19,9 @@ module.exports = {
19
env: {
20
browser: true,
21
},
22
+ globals: {
23
+ globalThis: 'readonly',
24
+ },
25
rules: {
26
'no-setter-return': 'off',
27
'ember/classic-decorator-no-classic-methods': 'warn',
addon/utils/config-utils.js
@@ -11,7 +11,9 @@ export function getDestinationElementIdFromConfig(config) {
11
return modalContainerId;
12
}
13
14
-export const isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
+export const isIOS =
15
+ (globalThis.navigator || false) &&
16
+ /iPad|iPhone|iPod/.test(navigator.userAgent);
17
18
export function clickHandlerDelay(component) {
let ENV = getOwner(component).resolveRegistration('config:environment');
0 commit comments