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() {
3737 }
3838 } ) ;
3939
40- if ( process . env . HADRON_PRODUCT !== 'mongodb-compass-community' ) {
40+ if ( process . env . HADRON_PRODUCT !== 'mongodb-compass-community' && app . preferences . enableFeedbackPanel ) {
4141 const request = new XMLHttpRequest ( ) ;
4242 request . onreadystatechange = ( ) => {
4343 try {
@@ -163,7 +163,9 @@ module.exports = function() {
163163 * such that when a link is clicked, the event is properly
164164 * passed off to `app.router` and a web page actually opens.
165165 */
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 ) {
167169 intercom . configure ( ) ;
168170 }
169171
You can’t perform that action at this time.
0 commit comments