Adapt the extension to the manifest version 2