Skip to content

Commit 5077d3b

Browse files
chore: set default options obj for createNotifier
1 parent ce8cd23 commit 5077d3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/Notifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Notifier {
4444
* @param {string=} id // if not set, the notification message will be used
4545
* @returns {Promise<keyof Buttons>}
4646
*/
47-
async createNotification(type, message, options, rememberable, id) {
47+
async createNotification(type, message, options = /** @type {Buttons} */ ({}), rememberable, id) {
4848
// Stale devices have question marks after stale values. We don't want these to cause duplicates
4949
id = id || message.replace(/\?/g, "");
5050
const storedValue = this.pymakr.config.get().get(`misc.notifications`)[id];

0 commit comments

Comments
 (0)