62a5f750af
Root cause of the persistent "notification opens a dead page / no Join" bug: openFromNotif gated the in-place open on `window.ME`, but ME is declared with `let` — which never creates a global property — so window.ME was ALWAYS undefined and every click hit the full-page-reload fallback. Use bare `ME`. Also: - Notifications fire instantly: never block on the DP download. Use the photo only if already cached; warm the cache in the background + pre-warm all contact DPs on chat load (precache-avatars IPC). Removes the ~2.5s lag. - Wire call Join/Decline handlers BEFORE firing the OS notification so Join is live the instant the invite popup appears (was dead until the toast settled). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
57 lines
1.3 KiB
JSON
57 lines
1.3 KiB
JSON
{
|
|
"name": "biz-connect-desktop",
|
|
"version": "0.1.9",
|
|
"description": "Biz Connect technician desktop client — loads the Connect web UI with native screen capture",
|
|
"author": {
|
|
"name": "BizGaze",
|
|
"email": "support@bizgaze.com"
|
|
},
|
|
"main": "main.js",
|
|
"scripts": {
|
|
"start": "electron .",
|
|
"dist": "electron-builder"
|
|
},
|
|
"dependencies": {
|
|
"electron-updater": "^6.3.9"
|
|
},
|
|
"devDependencies": {
|
|
"electron": "^31.0.0",
|
|
"electron-builder": "^24.13.3"
|
|
},
|
|
"build": {
|
|
"appId": "com.bizgaze.connect.desktop",
|
|
"productName": "Biz Connect",
|
|
"directories": {
|
|
"buildResources": "build",
|
|
"output": "dist"
|
|
},
|
|
"publish": [
|
|
{
|
|
"provider": "generic",
|
|
"url": "https://remote.bizgaze.com/downloads/"
|
|
}
|
|
],
|
|
"win": {
|
|
"target": "nsis",
|
|
"icon": "build/icon.ico"
|
|
},
|
|
"nsis": {
|
|
"oneClick": true,
|
|
"perMachine": false,
|
|
"createDesktopShortcut": true,
|
|
"createStartMenuShortcut": true,
|
|
"shortcutName": "Biz Connect",
|
|
"runAfterFinish": true
|
|
},
|
|
"mac": {
|
|
"target": "dmg",
|
|
"category": "public.app-category.business",
|
|
"icon": "build/icon.ico"
|
|
},
|
|
"linux": {
|
|
"target": "AppImage",
|
|
"category": "Network"
|
|
}
|
|
}
|
|
}
|