Updated Announcement
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user