Skip to main content

getExtensionId

tip

To use the API, connection_isolated must be set to true in manifest.

Show Details

Get the ID of the extension (the value of chrome.runtime.id).

import { getExtensionId } from 'crx-monkey';

getExtensionId().then((id) => {
console.log('id:', id);
});