Skip to content

Commit

Permalink
scroll to top on email interstitial
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Nov 12, 2024
1 parent fd322b8 commit 7200489
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Component, EventEmitter, Input, Output } from '@angular/core'
import { Component, EventEmitter, Inject, Input, Output } from '@angular/core'
import { PlatformInfoService } from '../../platform-info'
import { AssertionVisibilityString, EmailsEndpoint } from 'src/app/types'
import { FormBuilder, FormControl, FormGroup } from '@angular/forms'
import { RecordEmailsService } from 'src/app/core/record-emails/record-emails.service'
import { error } from 'console'
import { WINDOW } from '../../window'

@Component({
selector: 'app-share-emails-domains',
Expand All @@ -23,12 +24,14 @@ export class ShareEmailsDomainsComponent {
constructor(
public platformInfo: PlatformInfoService,
private fb: FormBuilder,
private recordEmailsService: RecordEmailsService
private recordEmailsService: RecordEmailsService,
@Inject(WINDOW) private window: Window
) {}
public loadingEmails = true
@Output() finish = new EventEmitter<void>()

ngOnInit() {
this.window.scrollTo(0, 0)
this.userPrivateDomains = this.getTop3MostRecentPrivateDomains(
this.userEmailsJson
)
Expand Down

0 comments on commit 7200489

Please sign in to comment.