File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,6 @@ const create = (win, options) => {
138
138
inspect : ( ) => ( {
139
139
id : 'inspect' ,
140
140
label : 'Inspect Element' ,
141
- enabled : isDev ,
142
141
click ( ) {
143
142
win . inspectElement ( props . x , props . y ) ;
144
143
@@ -155,6 +154,8 @@ const create = (win, options) => {
155
154
} )
156
155
} ;
157
156
157
+ const shouldShowInspectElement = typeof options . showInspectElement === 'boolean' ? options . showInspectElement : isDev ;
158
+
158
159
let menuTemplate = [
159
160
defaultActions . separator ( ) ,
160
161
options . showLookUpSelection !== false && defaultActions . lookUpSelection ( ) ,
@@ -170,7 +171,7 @@ const create = (win, options) => {
170
171
defaultActions . separator ( ) ,
171
172
defaultActions . copyLink ( ) ,
172
173
defaultActions . separator ( ) ,
173
- options . showInspectElement && defaultActions . inspect ( ) ,
174
+ shouldShowInspectElement && defaultActions . inspect ( ) ,
174
175
options . showServices && defaultActions . services ( ) ,
175
176
defaultActions . separator ( )
176
177
] ;
You can’t perform that action at this time.
0 commit comments