Skip to content

All your computers and your phone/iPhone, working as one desk. Screens, apps, files, clipboard, calls, texts, notifications, mouse and keyboard, shared between Mac, Windows, Linux , Android, Web and ios / ipados . Free and open source. No account, no cloud, and no shared network needed.

710 B
Raw Blame
// TwinDesk — Copyright (C) 2026 inukaasith. GPL-3.0, see LICENSE.
// The call window's API (callwin.js): its state, and Answer / Decline / End / Mute / where the sound is.
'use strict';

const { contextBridge, ipcRenderer } = require('electron');

contextBridge.exposeInMainWorld('callpop', {
  state: () => ipcRenderer.invoke('callpop:state'),
  onState: (fn) => ipcRenderer.on('callpop:state', (_e, s) => fn(s)),
  act: (r) => ipcRenderer.send('callpop:act', r),
  open: () => ipcRenderer.send('callpop:open'),
  close: () => ipcRenderer.send('callpop:close'),
});

contextBridge.exposeInMainWorld('playerLanguage', {
  onChange: (fn) => ipcRenderer.on('ui-language', (_e, language) => fn(language)),
});