var tabs = {};

chrome.extension.onRequest.addListener(function(request, sender, callback) {
    var tabId = request.tabId;

    if (!(tabId in tabs)) {
        chrome.tabs.executeScript(tabId, { file: 'generated_accessibility.js' }, function() {
            if (chrome.extension.lastError) {
                callback({ error: chrome.extension.lastError.message });
                return;
            }
        });
        tabs[tabId] = true;
        callback();
    }
});

var tabs = {};

chrome.extension.onRequest.addListener(function(request, sender, callback) {
    var tabId = request.tabId;

    if (!(tabId in tabs)) {
        chrome.tabs.executeScript(tabId, { file: 'generated_accessibility.js' }, function() {
            if (chrome.extension.lastError) {
                callback({ error: chrome.extension.lastError.message });
                return;
            }
        });
        tabs[tabId] = true;
    }
    callback();
});

Fix bug where audit wouldn't show up after closing and re-opening devtools.
Fix bug where audit wouldn't show up after closing and re-opening devtools.
