MCPcopy Index your code
hub / github.com/massCodeIO/massCode / notify

Function notify

integrations/clipper/src/background.ts:92–101  ·  view source on GitHub ↗
(title: string, message: string)

Source from the content-addressed store, hash-verified

90}
91
92async function notify(title: string, message: string): Promise<void> {
93 await chrome.action.setBadgeText({
94 text: title.startsWith('Saved') ? 'OK' : 'ERR',
95 })
96 await chrome.action.setTitle({ title: `${title}: ${message}` })
97
98 setTimeout(() => {
99 void chrome.action.setBadgeText({ text: '' })
100 }, 3000)
101}
102
103function isCaptureTarget(value: string | number): value is CaptureTarget {
104 return value === 'code' || value === 'notes' || value === 'http'

Callers 1

captureFromTabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected