: pageData.favicon // 添加favicon信息
                });
            }
            window.api.closePopupAndRefresh();
        });

        removeBtn.addEventListener('click', async () => {
            if (pageData.bookmark) {
                await window.api.deleteBookmarks([pageData.bookmark.id]);
                window.api.closePopupAndRefresh();
            }
        });

        closeBtn.addEventListener('click', () => {
            // 直接关闭而不保存
             window.api.closePopupAndR