Currently I have created sample add on as per the steps mentioned at https://developer.thunderbird.net/add-on-examples/hello-world-add-on
But for some purpose I need to use Components.utils.import(“resource://gre/modules/ctypes.jsm”); or
ChromeUtils.import(“resource://gre/modules/ctypes.jsm”); and some other JSM module in my page script.
After adding any of above line (similar line for other JSM module)page script, thunderbird error console shows below error
ReferenceError: ChromeUtils is not defined or Components.utils is not defined
I know there are lot of changes with TB68 specifically in context of API. Older version thunderbird support the ChromeUtils but TB 68 throws error.
Would it be possible to provide solution for this ? I am not aware currently there is an alternative of ChromeUtils is available or not. If there is any alternative available could you please let me know ?
Thanks in advance. Let me know if more information is required