scripting.messageDisplay.registerScripts() are called twice?

Hi,

in background.js I do the following:

const scriptDetails = {
    id: "messageHint-script",
    js: [
        "showHint.js"
    ],
    runAt: "document_idle"
};
messenger.scripting.messageDisplay.registerScripts([scriptDetails]);

The file showHint.js just contains this line:

console.log("Hello");

Every time I switch messages in Thunderbird, the “Hello” message is logged twice. Like if all registered Scripts are called twice?

What am I doing wrong?

Linux with Thunderbird BETA 141.0b2 (64-Bit).

Hey @regify, we don’t generally cover Thunderbird here. Based on this post, it sounds like the best place to request assistance with Thunderbird add-on development is https://thunderbird.topicbox.com/groups/.

Correct. Specifically groups/addons

Thanks to both of you, but I asked this and more questions there already and got no answer for more than two weeks now. So I thought I better try here where more people are active… :face_with_diagonal_mouth:

And this is the AddOns - Development category. Why is that wrong here?

Someone will reply to Topicbox

Until now, no one answered. The topicbox seems not active any more. No answer for 24 days…