File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/internal-plugins/metrics/lib Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ module.exports = function() {
37
37
}
38
38
} ) ;
39
39
40
- if ( process . env . HADRON_PRODUCT !== 'mongodb-compass-community' ) {
40
+ if ( process . env . HADRON_PRODUCT !== 'mongodb-compass-community' && app . preferences . enableFeedbackPanel ) {
41
41
const request = new XMLHttpRequest ( ) ;
42
42
request . onreadystatechange = ( ) => {
43
43
try {
@@ -163,7 +163,9 @@ module.exports = function() {
163
163
* such that when a link is clicked, the event is properly
164
164
* passed off to `app.router` and a web page actually opens.
165
165
*/
166
- if ( process . env . HADRON_PRODUCT !== 'mongodb-compass-community' && ! intercomBlocked ) {
166
+ if ( process . env . HADRON_PRODUCT !== 'mongodb-compass-community' &&
167
+ ! intercomBlocked &&
168
+ app . preferences . enableFeedbackPanel ) {
167
169
intercom . configure ( ) ;
168
170
}
169
171
You can’t perform that action at this time.
0 commit comments