Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
Fix for openLink missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Gullmark committed Jul 14, 2018
1 parent 9e09d65 commit 2228cb1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { AnalyticsService } from '../../../../shared/providers/analytics.service
import { PartyService } from '../../../../shared/providers/party.service';
import { LadderTableComponent } from '../../ladder-table/ladder-table.component';
import { LadderService } from '../../../../shared/providers/ladder.service';
import { ElectronService } from '../../../../shared/providers/electron.service';

@Component({
selector: 'app-char-ladder',
Expand All @@ -26,7 +27,8 @@ export class CharLadderComponent implements OnInit {
fb: FormBuilder,
private partyService: PartyService,
private analyticsService: AnalyticsService,
private ladderService: LadderService
private ladderService: LadderService,
private electronService: ElectronService
) {
this.form = fb.group({
searchText: ['']
Expand All @@ -40,4 +42,7 @@ export class CharLadderComponent implements OnInit {
ngOnInit() {
this.analyticsService.sendScreenview('/authorized/party/player/ladder');
}
openLink(link: string) {
this.electronService.shell.openExternal(link);
}
}

0 comments on commit 2228cb1

Please sign in to comment.