reywood / bitbucket-pr-review

Chrome extension that allows you to flag individual files in a pull request as reviewed
GNU Lesser General Public License v3.0
19 stars 14 forks source link

I'm getting "tab menu not found" in the console log #48

Open wes-mytrailmate opened 2 years ago

wes-mytrailmate commented 2 years ago

Microsoft Edge Version 96.0.1054.34 (Official build) (64-bit) BitBucket Pull Request Review Helper Version1.7.1

Using against bitbucket.org pull request. Any ideas?

Below is where the console log comes from in init.js

function isDiffTabActive() {
    const tabMenu = document.querySelector('.pr-tab-links');
    if (!tabMenu) {
        console.log('tab menu not found');
        return false;
    }
    const activeTab = tabMenu.querySelector('.active-tab [data-tab-link-id]');
    return !!activeTab && activeTab.dataset.tabLinkId === 'diff';
}
reywood commented 2 years ago

The extension does not work with the new BitBucket pull request interface. I would guess that's why you are getting that message. The new interface has functionality that is roughly equivalent to what this extension does, so I did not bother updating it.

When BitBucket first introduced the new interface, they gave users the option of continuing to use the old PR interface. I just checked, and it looks like that is no longer possible. As such, this extension is no longer useful. I will remove it from the Firefox and Chrome extension stores.