mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-21 15:53:50 +02:00
Fixes and lint
This commit is contained in:
@@ -2568,7 +2568,7 @@ speechSynthesis.getVoices();
|
||||
return args;
|
||||
})
|
||||
.catch((err) => {
|
||||
if (err.includes('Instance is closed.')) {
|
||||
if (err && err.includes('Instance is closed.')) {
|
||||
$app.$message({
|
||||
message: 'Instance is closed.',
|
||||
type: 'error'
|
||||
@@ -6377,14 +6377,29 @@ speechSynthesis.getVoices();
|
||||
if (playNotificationTTS) {
|
||||
this.playNotyTTS(noty, message);
|
||||
}
|
||||
if (playDesktopToast || playXSNotification || playOvrtHudNotifications || playOvrtWristNotifications || playOverlayNotification) {
|
||||
if (
|
||||
playDesktopToast ||
|
||||
playXSNotification ||
|
||||
playOvrtHudNotifications ||
|
||||
playOvrtWristNotifications ||
|
||||
playOverlayNotification
|
||||
) {
|
||||
if (this.imageNotifications) {
|
||||
this.notySaveImage(noty).then((image) => {
|
||||
if (playXSNotification) {
|
||||
this.displayXSNotification(noty, message, image);
|
||||
}
|
||||
if (playOvrtHudNotifications || playOvrtWristNotifications) {
|
||||
this.displayOvrtNotification(playOvrtHudNotifications, playOvrtWristNotifications, noty, message, image);
|
||||
if (
|
||||
playOvrtHudNotifications ||
|
||||
playOvrtWristNotifications
|
||||
) {
|
||||
this.displayOvrtNotification(
|
||||
playOvrtHudNotifications,
|
||||
playOvrtWristNotifications,
|
||||
noty,
|
||||
message,
|
||||
image
|
||||
);
|
||||
}
|
||||
if (playDesktopToast) {
|
||||
this.displayDesktopToast(noty, message, image);
|
||||
@@ -6398,7 +6413,13 @@ speechSynthesis.getVoices();
|
||||
this.displayXSNotification(noty, message, '');
|
||||
}
|
||||
if (playOvrtHudNotifications || playOvrtWristNotifications) {
|
||||
this.displayOvrtNotification(playOvrtHudNotifications, playOvrtWristNotifications, noty, message, '');
|
||||
this.displayOvrtNotification(
|
||||
playOvrtHudNotifications,
|
||||
playOvrtWristNotifications,
|
||||
noty,
|
||||
message,
|
||||
''
|
||||
);
|
||||
}
|
||||
if (playDesktopToast) {
|
||||
this.displayDesktopToast(noty, message, '');
|
||||
|
||||
Reference in New Issue
Block a user