File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ const OPT_OUT_KEY = 'tw:windchime_opt_out';
88const submittedThisSession = new Set ( ) ;
99
1010const isOptedOut = ( ) => {
11+ if ( ! process . env . ENABLE_WINDCHIMES ) {
12+ return true ;
13+ }
14+
1115 try {
1216 const local = localStorage . getItem ( OPT_OUT_KEY ) ;
1317 if ( local !== null ) {
Original file line number Diff line number Diff line change @@ -179,7 +179,8 @@ module.exports = [
179179 'process.env.DEBUG' : Boolean ( process . env . DEBUG ) ,
180180 'process.env.ENABLE_SERVICE_WORKER' : JSON . stringify ( process . env . ENABLE_SERVICE_WORKER || '' ) ,
181181 'process.env.ROOT' : JSON . stringify ( root ) ,
182- 'process.env.ROUTING_STYLE' : JSON . stringify ( process . env . ROUTING_STYLE || 'filehash' )
182+ 'process.env.ROUTING_STYLE' : JSON . stringify ( process . env . ROUTING_STYLE || 'filehash' ) ,
183+ 'process.env.ENABLE_WINDCHIMES' : JSON . stringify ( process . env . ENABLE_WINDCHIMES || '' )
183184 } ) ,
184185 new HtmlWebpackPlugin ( {
185186 chunks : [ 'editor' ] ,
You can’t perform that action at this time.
0 commit comments