Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Lanzilotto committed Dec 27, 2024
1 parent 3b52cbe commit b010ab5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {

}

checkSPPopupIframeWithRetries = (maxRetries = 3, delay = 1000) => {
checkSPPopupIframeWithRetries = (maxRetries = 5, delay = 1000) => {
let attempts = 0;

const checkForIframe = () => {
attempts++;
this.logger.log(`Attempt ${attempts} to find the iframe...`);
// console.log(`Attempt ${attempts} to find the iframe...`);

const wrapper = document.getElementById('sleek-widget-wrap');

Expand All @@ -295,7 +295,7 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {

observeClassChange(targetSelector: string, classToDetect: string, callback: () => void): void {
const targetElement = document.querySelector(targetSelector);
this.logger.log('targetElement ', targetElement);
// console.log('targetElement ', targetElement);
if (!targetElement) {
this.logger.error('Target element not found');
return;
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/navbar/navbar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2061,7 +2061,7 @@ export class NavbarComponent extends PricingBaseComponent implements OnInit, Aft
)
.pipe(skip(1))
.subscribe((hasSeenChangelog) => {
this.logger.log('[NAVBAR] listenToLiveAnnouncementOpened hasSeenChangelog', hasSeenChangelog);
// console.log('[NAVBAR] listenToLiveAnnouncementOpened hasSeenChangelog', hasSeenChangelog);
const lastSeen = Date.now()
localStorage.setItem(`lastSeenTimestamp-${this.user._id}`, lastSeen.toString())
this.newChangelogCount = false
Expand Down

0 comments on commit b010ab5

Please sign in to comment.