7bc34c79ed
- Removed all cloud-related functionalities, including login prompts and token handling. - Disabled Laxis cloud features, ensuring no data is sent to external servers. - Updated manifest to reflect the new local-only functionality. - Added a new Python server to handle transcripts locally, including WebSocket support. - Implemented storage management for transcripts, including deduplication and file writing. - Created a smoke test for the WebSocket server to simulate transcript updates. - Updated README with setup instructions and usage details for the new local server.
30 lines
1.2 KiB
JavaScript
30 lines
1.2 KiB
JavaScript
// runtime.js — نقطهی شروع content script (آخرین فایل لودشده).
|
|
//
|
|
// نسخهی پاکسازیشده:
|
|
// - فراخوانی addRemindLogin() حذف شد (دیگر دکمهی «Login to autosave» ساخته نمیشود).
|
|
// - listener دریافت توکن و fetch به laxis (users/info, templates) کاملاً حذف شد.
|
|
// بقیهی منطق (ساخت پنل، مانیتور جلسه، تنظیمات، منوی دانلودِ محلی) دستنخورده است.
|
|
|
|
addRoot();
|
|
addMiniPanel();
|
|
|
|
const checkOngoingMeeting = setInterval(tryTo(addCaptionPanel, "adding button"), 1e3);
|
|
let notificationsTimeout;
|
|
const notificationsTimeoutDuration = 3e3;
|
|
let checkCaptionStatusInterval;
|
|
|
|
function saveLog(e) {
|
|
const t = { message: e, time: (new Date).toISOString() };
|
|
chrome.storage.local.get("logs", (function(e) {
|
|
var n = structuredClone(e.logs);
|
|
void 0 === n ? n = [t] : n.push(t), chrome.storage.local.set({ logs: n })
|
|
}))
|
|
}
|
|
|
|
syncSettings();
|
|
|
|
window.addEventListener("click", (e => {
|
|
const t = document.getElementById("laxis-downloadMenu");
|
|
e.target === t && (t.style.display = "none")
|
|
}));
|