Skip to content

Commit 9e25d16

Browse files
committed
changes made
1 parent 1a7b6c3 commit 9e25d16

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/scripts/scrumHelper.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -293,23 +293,20 @@ ${userReason}`;
293293
}
294294
var intervalSubject = setInterval(() => {
295295
if (!window.emailClientAdapter) {
296-
console.log('Waiting for email client adapter to initialize...');
297296
return;
298297
}
299298

300299
const elements = window.emailClientAdapter.getEditorElements();
301300
if (!elements || !elements.subject) {
302-
console.log('Waiting for email elements to be ready...');
303301
return;
304302
}
305303

306-
// Only proceed if we have all required data
304+
307305
if (!githubUserData) {
308-
console.log('Waiting for GitHub user data...');
309306
return;
310307
}
311308

312-
console.log('All requirements met, initializing subject handling');
309+
313310
clearInterval(intervalSubject);
314311
scrumSubject = elements.subject;
315312

@@ -321,30 +318,30 @@ ${userReason}`;
321318

322319
function scrumSubjectLoaded() {
323320
try {
324-
console.log('Starting subject processing...');
321+
325322

326323
if (!enableToggle) {
327-
console.log('Subject modification skipped: extension is disabled');
324+
328325
return;
329326
}
330327

331328
if (!scrumSubject) {
332-
console.log('Subject element not found, skipping modification');
329+
333330
return;
334331
}
335332

336333
// Get the current subject value
337334
const currentSubject = scrumSubject.value || '';
338-
console.log('Current subject:', currentSubject);
335+
339336

340337
// Don't modify the subject if it's a reply or already has [Scrum]
341338
if (currentSubject.startsWith('Re:')) {
342-
console.log('Subject modification skipped: this is a reply email');
339+
343340
return;
344341
}
345342

346343
if (currentSubject.includes('[Scrum]')) {
347-
console.log('Subject modification skipped: already contains [Scrum]');
344+
348345
return;
349346
}
350347

0 commit comments

Comments
 (0)