getExtensionId
ヒント
To use the API, connection_isolated
must be set to true in manifest.
Get the ID of the extension (the value of chrome.runtime.id
).
import { getExtensionId } from 'crx-monkey';
getExtensionId().then((id) => {
console.log('id:', id);
});