Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

Commit

Permalink
Remove defaultParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
perrin4869 committed Apr 13, 2016
1 parent 0260681 commit 7de024b
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/notify.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@
*/

const N = window.Notification;
const defaultOptions = { // Notification API default options
icon: '',
body: '',
tag: '',
lang: 'en',
requireInteraction: false,
silent: false
};

function isFunction(item) {
return typeof item === 'function';
Expand Down Expand Up @@ -41,12 +33,8 @@ function Notify(title, options = {}) {
} = options;

this.title = title;
this.options = rest;
this.permission = null;
this.options = {
...defaultOptions,
...rest
};

this.closeOnClick = closeOnClick;
this.timeout = timeout;

Expand Down

0 comments on commit 7de024b

Please sign in to comment.