@@ -293,23 +293,20 @@ ${userReason}`;
293
293
}
294
294
var intervalSubject = setInterval ( ( ) => {
295
295
if ( ! window . emailClientAdapter ) {
296
- console . log ( 'Waiting for email client adapter to initialize...' ) ;
297
296
return ;
298
297
}
299
298
300
299
const elements = window . emailClientAdapter . getEditorElements ( ) ;
301
300
if ( ! elements || ! elements . subject ) {
302
- console . log ( 'Waiting for email elements to be ready...' ) ;
303
301
return ;
304
302
}
305
303
306
- // Only proceed if we have all required data
304
+
307
305
if ( ! githubUserData ) {
308
- console . log ( 'Waiting for GitHub user data...' ) ;
309
306
return ;
310
307
}
311
308
312
- console . log ( 'All requirements met, initializing subject handling' ) ;
309
+
313
310
clearInterval ( intervalSubject ) ;
314
311
scrumSubject = elements . subject ;
315
312
@@ -321,30 +318,30 @@ ${userReason}`;
321
318
322
319
function scrumSubjectLoaded ( ) {
323
320
try {
324
- console . log ( 'Starting subject processing...' ) ;
321
+
325
322
326
323
if ( ! enableToggle ) {
327
- console . log ( 'Subject modification skipped: extension is disabled' ) ;
324
+
328
325
return ;
329
326
}
330
327
331
328
if ( ! scrumSubject ) {
332
- console . log ( 'Subject element not found, skipping modification' ) ;
329
+
333
330
return ;
334
331
}
335
332
336
333
// Get the current subject value
337
334
const currentSubject = scrumSubject . value || '' ;
338
- console . log ( 'Current subject:' , currentSubject ) ;
335
+
339
336
340
337
// Don't modify the subject if it's a reply or already has [Scrum]
341
338
if ( currentSubject . startsWith ( 'Re:' ) ) {
342
- console . log ( 'Subject modification skipped: this is a reply email' ) ;
339
+
343
340
return ;
344
341
}
345
342
346
343
if ( currentSubject . includes ( '[Scrum]' ) ) {
347
- console . log ( 'Subject modification skipped: already contains [Scrum]' ) ;
344
+
348
345
return ;
349
346
}
350
347
0 commit comments