MCPcopy Create free account
hub / github.com/MALSync/MALSync / videoTimeSetAction

Function videoTimeSetAction

src/background/messageHandler.ts:90–104  ·  view source on GitHub ↗
(message: videoTimeSet, sender, sendResponse)

Source from the content-addressed store, hash-verified

88}
89
90function videoTimeSetAction(message: videoTimeSet, sender, sendResponse) {
91 if (!message.sender?.tab?.id) return undefined;
92
93 chrome.tabs.sendMessage(
94 message.sender.tab.id,
95 {
96 action: 'videoTimeSet',
97 time: message.time,
98 timeAdd: message.timeAdd,
99 },
100 { frameId: message.sender.frameId },
101 );
102
103 return undefined;
104}
105
106function minimalWindowAction(message: minimalWindow, sender, sendResponse) {
107 api.storage.get('windowId').then(winId => {

Callers 1

messageHandlerFunction · 0.85

Calls 1

sendMessageMethod · 0.80

Tested by

no test coverage detected