Updated Announcement

This commit is contained in:
andrei-mihnea-cerbu
2025-02-12 18:15:56 +02:00
parent 23802acd98
commit 3ed7efa806
6 changed files with 9 additions and 5 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
// Load announcement content from the application info when the page loads
async function loadAnnouncement() {
try {
const announcementText = await window.electronAPI.readAnnouncement();
const announcementText = await window.uiAPI.readAnnouncement();
const announcementContent = document.getElementById('announcement-content');
if (announcementContent && announcementText) {
announcementContent.innerHTML = formatTextForHtml(announcementText);
@@ -22,5 +22,5 @@ function formatTextForHtml(text) {
// Close the window when the close button is clicked
function closeWindow() {
window.electronAPI.closeAnnouncementWindow();
window.uiAPI.closeAnnouncementWindow();
}