InboxSDK icon indicating copy to clipboard operation
InboxSDK copied to clipboard

Question: Denying load of */pageWorld.js. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.

Open praveen7557 opened this issue 3 years ago • 0 comments

Getting the error Denying load of chrome-extension://ececkagaccnfmkopaiemklekhoimmgpn/pageWorld.js. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension. in console of gmail.

import * as InboxSDK from '@inboxsdk/core';

InboxSDK.load(2, 'sdk_extension_284828').then((sdk) => {
  console.log('here'); // it's not coming here.
  sdk.Toolbars.addToolbarButtonForApp(
    appToolbarButton({
      onClick: () => {
        /** The inboxSDK API doesn't have a way to remove the dropdown arrow */
        const inboxSDKTooltip = document.querySelector('.inboxsdk__appButton_tooltip');
        inboxSDKTooltip && (inboxSDKTooltip.style.display = 'none');
      },
    }),
  );
});

I'm using latest version "@inboxsdk/core": "^0.2.20".

praveen7557 avatar Oct 18 '22 06:10 praveen7557