File tree Expand file tree Collapse file tree
-internals/environment/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,6 +56,18 @@ export const ENV = {
5656 */
5757 LOG_VERSION : true ,
5858
59+ /**
60+ The `LOG_INSPECTOR_HINT` property, when true, tells Ember to log a hint
61+ suggesting the Ember Inspector browser extension when it is not detected.
62+
63+ @property LOG_INSPECTOR_HINT
64+ @type Boolean
65+ @default true
66+ @for EmberENV
67+ @public
68+ */
69+ LOG_INSPECTOR_HINT : true ,
70+
5971 RAISE_ON_DEPRECATION : false ,
6072
6173 STRUCTURED_PROFILE : false ,
Original file line number Diff line number Diff line change 11import { isChrome , isFirefox } from '@ember/-internals/browser-environment' ;
2+ import { ENV } from '@ember/-internals/environment' ;
23import type { AnyFn } from '@ember/-internals/utility-types' ;
34import { DEBUG } from '@glimmer/env' ;
45import type { DeprecateFunc , DeprecationOptions } from './lib/deprecate' ;
@@ -273,7 +274,7 @@ if (DEBUG) {
273274
274275let _warnIfUsingStrippedFeatureFlags ;
275276
276- if ( DEBUG && ! isTesting ( ) ) {
277+ if ( DEBUG && ! isTesting ( ) && ENV . LOG_INSPECTOR_HINT ) {
277278 if ( typeof window !== 'undefined' && ( isFirefox || isChrome ) && window . addEventListener ) {
278279 window . addEventListener (
279280 'load' ,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ module.exports = {
44 'EXTEND_PROTOTYPES' ,
55 'GUID_KEY' ,
66 'GUID_PREFIX' ,
7+ 'LOG_INSPECTOR_HINT' ,
78 'LOG_STACKTRACE_ON_DEPRECATION' ,
89 'LOG_VERSION' ,
910 '[]' ,
You can’t perform that action at this time.
0 commit comments