Jeff Davidson
06/05/2022, 5:29 AM@file:JsQualifier("chrome.scripting")
and an external fun executeScript(...)
method, and it works fine when the namespace exists. However, if it's undefined, the generated JS fails to load even if I never actually try calling the method, since the code tries to declare a variable equal to "chrome.scripting.executeScript", which breaks. Is there a way to make such an external declaration where it does not attempt to initialize this variable unless/until the method is actually called?rnett
06/05/2022, 5:43 AMchrome.scripting
. But that requires manual loading, and I'm not sure how messy it would getJeff Davidson
06/05/2022, 5:49 AMjs("chrome.scripting.executeScript(...)")
and that works fine