MCPcopy
hub / github.com/philc/vimium / handleAction

Method handleAction

background_scripts/tab_recency.js:100–108  ·  view source on GitHub ↗
(action, tabId)

Source from the content-addressed store, hash-verified

98
99 // - action: "register" or "unregister".
100 handleAction(action, tabId) {
101 if (action == "register") {
102 this.register(tabId);
103 } else if (action == "deregister") {
104 this.deregister(tabId);
105 } else {
106 throw new Error(`Unexpected action type: ${action}`);
107 }
108 }
109
110 register(tabId) {
111 this.counter++;

Callers 2

initMethod · 0.95
queueActionMethod · 0.95

Calls 2

registerMethod · 0.95
deregisterMethod · 0.95

Tested by

no test coverage detected