File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
packages/electron-chrome-extensions/src/browser Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,13 @@ import { checkLicense, License } from './license'
2020import { readLoadedExtensionManifest } from './manifest'
2121import { PermissionsAPI } from './api/permissions'
2222
23+ function checkVersion ( ) {
24+ const electronVersion = process . versions . electron
25+ if ( electronVersion && parseInt ( electronVersion . split ( '.' ) [ 0 ] , 10 ) < 35 ) {
26+ console . warn ( 'electron-chrome-extensions requires electron@>=35.0.0' )
27+ }
28+ }
29+
2330export interface ChromeExtensionOptions extends ChromeExtensionImpl {
2431 /**
2532 * License used to distribute electron-chrome-extensions.
@@ -73,6 +80,7 @@ export class ElectronChromeExtensions extends EventEmitter {
7380
7481 const { license, session = electronSession . defaultSession , modulePath, ...impl } = opts || { }
7582
83+ checkVersion ( )
7684 checkLicense ( license )
7785
7886 if ( sessionMap . has ( session ) ) {
You can’t perform that action at this time.
0 commit comments