Unable to get property 'sendMessage' of undefined or null reference
问题 While trying to use browser.runtime.sendmessage(object) function above error occurs. Runtime API is not available and I see that web runtime API is available on a web page. This error occurs in Microsoft Edge and not in other browsers in content scripts. 来源: https://stackoverflow.com/questions/64608103/unable-to-get-property-sendmessage-of-undefined-or-null-reference