File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ getExtensionInfoFromPath = (srcDirectory) ->
32
32
startPage : page
33
33
name : manifest .name
34
34
srcDirectory : srcDirectory
35
- extensionInfoMap[manifest .name ]
35
+ extensionInfoMap[manifest .name ]
36
36
37
37
# Load persistented extensions.
38
38
loadedExtensionsPath = path .join app .getDataPath (), ' DevTools Extensions'
@@ -74,8 +74,9 @@ app.once 'ready', ->
74
74
75
75
BrowserWindow .addDevToolsExtension = (srcDirectory ) ->
76
76
extensionInfo = getExtensionInfoFromPath srcDirectory
77
- window ._loadDevToolsExtensions [extensionInfo] for window in BrowserWindow .getAllWindows ()
78
- extensionInfo .name
77
+ if extensionInfo
78
+ window ._loadDevToolsExtensions [extensionInfo] for window in BrowserWindow .getAllWindows ()
79
+ extensionInfo .name
79
80
80
81
BrowserWindow .removeDevToolsExtension = (name ) ->
81
82
delete extensionInfoMap[name]
You can’t perform that action at this time.
0 commit comments