mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-12 08:05:15 +02:00
6.0
This commit is contained in:
6
src/utils/true-achievements.ts
Normal file → Executable file
6
src/utils/true-achievements.ts
Normal file → Executable file
@@ -21,7 +21,7 @@ export class TrueAchievements {
|
||||
url: '#',
|
||||
icon: BxIcon.TRUE_ACHIEVEMENTS,
|
||||
style: ButtonStyle.FOCUSABLE | ButtonStyle.GHOST | ButtonStyle.FULL_WIDTH | ButtonStyle.NORMAL_LINK,
|
||||
onClick: this.onClick.bind(this),
|
||||
onClick: this.onClick,
|
||||
});
|
||||
|
||||
this.$button = createButton<HTMLAnchorElement>({
|
||||
@@ -29,7 +29,7 @@ export class TrueAchievements {
|
||||
title: t('true-achievements'),
|
||||
icon: BxIcon.TRUE_ACHIEVEMENTS,
|
||||
style: ButtonStyle.FOCUSABLE,
|
||||
onClick: this.onClick.bind(this),
|
||||
onClick: this.onClick,
|
||||
});
|
||||
|
||||
this.$hiddenLink = CE<HTMLAnchorElement>('a', {
|
||||
@@ -37,7 +37,7 @@ export class TrueAchievements {
|
||||
});
|
||||
}
|
||||
|
||||
private onClick(e: Event) {
|
||||
private onClick = (e: Event) => {
|
||||
e.preventDefault();
|
||||
|
||||
// Close all xCloud's dialogs
|
||||
|
Reference in New Issue
Block a user