Skip to content

Commit

Permalink
v1.5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Spl0itable committed Sep 5, 2024
1 parent 5a34ff2 commit 6dea3fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ document.addEventListener("DOMContentLoaded", () => {
}
}
} catch (error) {
console.error('Failed to send note:', error);
console.error('Failed to send anon note:', error);
showNote('Failed to send anon note. Please try again.', 'error', submitButton);
} finally {
resetFormState();
Expand Down Expand Up @@ -1050,7 +1050,7 @@ document.addEventListener("DOMContentLoaded", () => {
if (relayResult.success) {
relaySuccess = true;
const eventLink = `https://njump.me/${replyEventId}`;
showReplyNote(`Reply sent successfully via relay hop! <a href="${eventLink}" target="_blank">View Event</a>`, 'success', replyStatusNote);
showReplyNote(`Anon reply sent successfully via relay hop! <a href="${eventLink}" target="_blank">View Event</a>`, 'success', replyStatusNote);
timelineItem.querySelector('.reply-textarea').value = '';

saveEventId(replyEventId);
Expand Down Expand Up @@ -1079,7 +1079,7 @@ document.addEventListener("DOMContentLoaded", () => {
showReplyNote('No relays available. Please try again later.', 'error', replyStatusNote);
} else {
const eventLink = `https://njump.me/${replyEventId}`;
showReplyNote(`Reply sent successfully via ${successfulRelays}/${selectedRelays.length} relays! <a href="${eventLink}" target="_blank">View Event</a>`, 'success', replyStatusNote);
showReplyNote(`Anon reply sent successfully via ${successfulRelays}/${selectedRelays.length} relays! <a href="${eventLink}" target="_blank">View Event</a>`, 'success', replyStatusNote);
timelineItem.querySelector('.reply-textarea').value = '';

saveEventId(replyEventId);
Expand All @@ -1090,8 +1090,8 @@ document.addEventListener("DOMContentLoaded", () => {
}
}
} catch (error) {
console.error('Failed to send reply:', error);
showReplyNote('Failed to send reply. Please try again.', 'error', replyStatusNote);
console.error('Failed to send anon reply:', error);
showReplyNote('Failed to send anon reply. Please try again.', 'error', replyStatusNote);
} finally {
spinner.style.display = 'none';
sendReplyButton.disabled = false;
Expand Down

0 comments on commit 6dea3fe

Please sign in to comment.