Skip to content

Commit

Permalink
#4 fix default params in jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
skoro committed Dec 16, 2024
1 parent 44359ae commit 84bf098
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async function saveText(parentWindow, text, filename) {
*
* @param {Electron.Tray} tray
* @param {Electron.Menu} contextMenu The tray context menu.
* @param {import('../models/clip').Model[]} clipItems=[] Appends the clipboard items to the context menu.
* @param {import('../models/clip').Model[]} [clipItems] Appends the clipboard items to the context menu.
* @returns {Electron.Menu} The modified context menu.
*/
function updateTrayContextMenu(tray, contextMenu, clipItems) {
Expand Down Expand Up @@ -193,7 +193,7 @@ function updateTrayContextMenu(tray, contextMenu, clipItems) {

// In order for changes made to individual MenuItems to take effect, you have to call setContextMenu again.
// https://www.electronjs.org/docs/latest/api/tray
tray.setContextMenu(contextMenu);
tray.setContextMenu(contextMenu);

return contextMenu;
}
Expand All @@ -203,7 +203,7 @@ function updateTrayContextMenu(tray, contextMenu, clipItems) {
*
* @param {string} str
* @param {number} limit A desired string limit.
* @param {string} trail='...' A trail appended to the end of the string longer than limit.
* @param {string} [trail='...'] A trail appended to the end of the string longer than limit.
* @return {string}
*/
function stringCut(str, limit, trail = '...') {
Expand Down

0 comments on commit 84bf098

Please sign in to comment.