INNER CODE UNIT · JavaScript
id
jatinkrmalik/LLMFeeder · extension/background.js:107
const id = chrome.contextMenus.create(createProperties, () => {
if (chrome.runtime.lastError) {
reject(new Error(chrome.runtime.lastError.message));
} else {
resolve(id);
}
});
});
},
update: promisify(chrome.contextMenus.update, chrome.contextMenus),
remove: promisify(chrome.contextMenus.remove, chrome.contextMenus),
removeAll: function() {
return new Promise((resolve, reject) => {
chrome.contextMenus.removeAll(() => {
if (chrome.runtime.lastError) {
reject(new Error(chrome.runtime.lastError.message));
} else {
resolve();