AAU-SW7-PSAAAB / energy-label-extension

MIT License
1 stars 0 forks source link

[Bug] Ctrl+Tab Double Analyze Wrong Score #108

Closed NybyDK closed 1 day ago

NybyDK commented 1 week ago

When scanning a website and ctrl+tabbing to another website, it scans both and mixes the scores into one, for example, 38 format results in 100/100 website with a red circle hehe

I think it is because of this:

window.addEventListener("load", () => {
    browser.runtime.sendMessage({ action: MessageLiterals.SiteLoaded });
});

in content.ts

KamyaPA commented 1 week ago

I cannot recreate the bug in either firefox or chromium When ctrl tabbing it finishes the scan of the previous webpage and shows me the that score.

DenFlyvendeGed commented 5 days ago

Anton siger at det her issue passer godt sammen med dette: Extension state should be tab based, such that the extension is ready to scan when accessing a new tab, rather than showing results of other tabs