chore: [extensions] support old APIs when enable_electron_extensions = true (#21812)
This commit is contained in:
parent
dc97fe0640
commit
acb5b75057
5 changed files with 76 additions and 1 deletions
|
@ -154,7 +154,9 @@ require('@electron/internal/browser/devtools')
|
|||
const features = process.electronBinding('features')
|
||||
|
||||
// Load the chrome extension support.
|
||||
if (!features.isExtensionsEnabled()) {
|
||||
if (features.isExtensionsEnabled()) {
|
||||
require('@electron/internal/browser/chrome-extension-shim')
|
||||
} else {
|
||||
require('@electron/internal/browser/chrome-extension')
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue