null-dev / DynamicHistory

Automagically delete browsing history based on the content of the page!
MIT License
20 stars 3 forks source link

Browser console errors #28

Open kocjs opened 2 years ago

kocjs commented 2 years ago

I get a lot of browser console errors, is there anything to worry about?

Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist.
updatePopup moz-extension://0f491beb-69cf-43fc-b5db-a33864e59ed0/background.js:366

view-source:moz-extension://0f491beb-69cf-43fc-b5db-a33864e59ed0/background.js

function updatePopup() {
    chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
        //No active tab!
        if(tabs.length <= 0) return;

        let entry = tabMap[tabs[0].id];

        if(entry != null)
            chrome.runtime.sendMessage({
                action: "updateTabInfo",
                reason: entry.reason,
                target: entry.target,
                status: entry.status
            });
        else
            chrome.runtime.sendMessage({
                action: "updateTabInfo",
                reason: "DynamicHistory is still processing this page",
                status: false
            });
null-dev commented 2 years ago

It's fine, it's just the extension trying to update the information in the popup that appears when you click on the extension icon in the toolbar.

I will leave this issue open to remind me to hide those errors.