@@ -165,7 +165,7 @@ export function addMenu(title: string, id: string, position: string, relativeId:
165165 const err = _addToPosition ( newObj , menuTemplate , position || "last" , relativeId ) ;
166166 _refreshMenu ( callback . bind ( null , err ) ) ;
167167 } ) ;
168- } ;
168+ }
169169
170170export function addMenuItem (
171171 parentId : string ,
@@ -216,7 +216,7 @@ export function addMenuItem(
216216 const err = _addToPosition ( newObj , parentObj . submenu as MenuItemOptions [ ] , position || "last" , relativeId ) ;
217217 _refreshMenu ( callback . bind ( null , err ) ) ;
218218 } ) ;
219- } ;
219+ }
220220
221221export function getMenuItemState (
222222 commandId : string ,
@@ -230,7 +230,7 @@ export function getMenuItemState(
230230 }
231231 callback ( null , obj . enabled === true , obj . checked === true ) ;
232232 } ) ;
233- } ;
233+ }
234234
235235export function getMenuPosition (
236236 commandId : string ,
@@ -241,7 +241,7 @@ export function getMenuPosition(
241241 const res = _findMenuItemPosition ( commandId ) ;
242242 return res ? callback ( null , res [ 0 ] , res [ 1 ] ) : callback ( null ) ;
243243 } ) ;
244- } ;
244+ }
245245
246246export function getMenuTitle ( commandId : string , callback : ( err ?: string | null , title ?: string ) => void ) {
247247 assert ( commandId && typeof commandId === "string" , "commandId must be a string" ) ;
@@ -252,23 +252,23 @@ export function getMenuTitle(commandId: string, callback: (err?: string | null,
252252 }
253253 callback ( null , obj . label ) ;
254254 } ) ;
255- } ;
255+ }
256256
257257export function removeMenu ( commandId : string , callback : ( err ?: string | null , deleted ?: boolean ) => void ) {
258258 assert ( commandId && typeof commandId === "string" , "commandId must be a string" ) ;
259259 process . nextTick ( function ( ) {
260260 const deleted = _deleteMenuItemById ( commandId ) ;
261261 _refreshMenu ( callback . bind ( null , deleted ? null : ERR_NOT_FOUND ) ) ;
262262 } ) ;
263- } ;
263+ }
264264
265265export function removeMenuItem ( commandId : string , callback : ( err ?: string | null , deleted ?: boolean ) => void ) {
266266 assert ( commandId && typeof commandId === "string" , "commandId must be a string" ) ;
267267 process . nextTick ( function ( ) {
268268 const deleted = _deleteMenuItemById ( commandId ) ;
269269 _refreshMenu ( callback . bind ( null , deleted ? null : ERR_NOT_FOUND ) ) ;
270270 } ) ;
271- } ;
271+ }
272272
273273export function setMenuItemShortcut (
274274 commandId : string ,
@@ -291,7 +291,7 @@ export function setMenuItemShortcut(
291291 }
292292 _refreshMenu ( callback . bind ( null , null ) ) ;
293293 } ) ;
294- } ;
294+ }
295295
296296export function setMenuItemState (
297297 commandId : string ,
@@ -316,7 +316,7 @@ export function setMenuItemState(
316316 }
317317 _refreshMenu ( callback . bind ( null , null ) ) ;
318318 } ) ;
319- } ;
319+ }
320320
321321export function setMenuTitle (
322322 commandId : string ,
@@ -333,4 +333,4 @@ export function setMenuTitle(
333333 obj . label = title ;
334334 _refreshMenu ( callback . bind ( null , null ) ) ;
335335 } ) ;
336- } ;
336+ }
0 commit comments