Artifact cfc05731e795af7d8be8e6447f8fc435ed226efe:
- File build/tcl/chrome-emu.js — part of check-in [7336ecd46a] at 2019-06-08 22:18:11 on branch trunk — Start of Tcl-based SSH agent that uses JavaScript implementation (user: rkeene, size: 489) [annotate] [blame] [check-ins using]
console = { log: function() { /* XXX:TODO: Logging */ } } chrome = { runtime: { connectCallbacks: [], onConnectExternal: { addListener: function(callback) { if (!callback) { return; } chrome.runtime.connectCallbacks.push(callback) }, removeListener: function(callback) { var idx; idx = chrome.runtime.connectCallbacks.indexOf(callback); if (idx == -1) { return; } chrome.runtime.connectCallbacks.splice(idx, 1); } } } }