Skip to content

Commit

Permalink
fix: use empty object as options default
Browse files Browse the repository at this point in the history
  • Loading branch information
Viiprogrammer committed Feb 20, 2024
1 parent 45850dc commit 696610c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class MediaGroup {
* Media group plugin constructor
* @param {MediaGroupOptions} [options] Options
*/
constructor (options) {
constructor (options = {}) {
this[storeSymbol] = options.store ?? new Map()
this[timeoutSymbol] = options.timeout ?? 100
this[allowedUpdatesSymbol] = options.allowedUpdates ?? ['video', 'audio', 'photo', 'document']
Expand Down

0 comments on commit 696610c

Please sign in to comment.