MCPcopy
hub / github.com/mozilla/multi-account-containers / pickedFunction

Function pickedFunction

src/js/popup.js:1092–1101  ·  view source on GitHub ↗
(identity)

Source from the content-addressed store, hash-verified

1090 document.getElementById("picker-title").textContent = browser.i18n.getMessage("openANewTabIn");
1091 const fragment = document.createDocumentFragment();
1092 const pickedFunction = function (identity) {
1093 try {
1094 browser.tabs.create({
1095 cookieStoreId: identity.cookieStoreId
1096 });
1097 window.close();
1098 } catch {
1099 window.close();
1100 }
1101 };
1102
1103 document.getElementById("new-container-div").innerHTML = "";
1104

Callers 1

prepareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected