mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-25 22:25:53 +02:00
Fix/Improve linting
This commit is contained in:
@@ -193,7 +193,8 @@ export class App implements OnInit, OnDestroy {
|
||||
if (isSelected(this.game, message.entityId)) {
|
||||
this.game.whisperTo = entity;
|
||||
chatBox.setChatType('whisper');
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
this.game.select(entity as Pony);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -490,8 +490,11 @@ export class Character implements OnInit, OnDestroy {
|
||||
await this.model.savePony(pony, true);
|
||||
imported++;
|
||||
}
|
||||
} catch (e) {
|
||||
DEVELOPMENT && console.error(e);
|
||||
}
|
||||
catch (e) {
|
||||
if (DEVELOPMENT) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,9 @@ export class Help {
|
||||
ngAfterViewInit() {
|
||||
this.route.fragment.subscribe(f => {
|
||||
const element = document.querySelector('#' + f);
|
||||
if (element) setTimeout(() => element.scrollIntoView(), 10);
|
||||
if (element) {
|
||||
setTimeout(() => element.scrollIntoView(), 10);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user