Is there a way prevent tab from discarding without reloading when used
chrome.tabs.discard(tabId);
?
I have 2 extensions, one that discards tabs and second that manages it's own single tab and I need second extension protect it's tab from being discarded.
My current work around is to listen on chrome.tabs.onReplaced
event and reload the tab:
chrome.tabs.onReplaced.addListener((newTabId, oldTabId) =>
{
chrome.tabs.reload(newTabId);
});
But is there a way undiscard a tab without reloading it, or better yet prevent discard in the first place?