Skip to content

Commit db017d8

Browse files
committed
Support empty constructors
1 parent df855cc commit db017d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

simpletoast.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
(() => {
55
if (window !== window.top) return;
6-
const version = buildVersion(1, 7, 3);
6+
const version = buildVersion(1, 8, 0);
77
if (window.SimpleToast) {
88
if (SimpleToast.version) {
99
if (SimpleToast.version >= version.number) return;
@@ -128,7 +128,7 @@
128128
exists: () => false,
129129
close: noop,
130130
};
131-
function Toast({title, text, className, css = {}, buttons, timeout, onClose}) {
131+
function Toast({title, text, className, css = {}, buttons, timeout, onClose} = {}) {
132132
if (typeof arguments[0] === 'string') {
133133
text = arguments[0];
134134
}

0 commit comments

Comments
 (0)