Skip to content

Commit 036bee7

Browse files
v1.1.0 dist
1 parent 67bdfad commit 036bee7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/vue-izitoast.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
8484
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_izitoast___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_izitoast__);
8585

8686

87+
88+
8789
function plugin(Vue, options = {}) {
8890
if (options && options.constructor !== Object) throw 'Options must be a object';
8991

@@ -137,7 +139,7 @@ function plugin(Vue, options = {}) {
137139
},
138140
_checkEventNames(eventName) {
139141
if (!eventName || eventName.constructor !== String) throw 'Event Name must be a string';
140-
if (eventName !== 'iziToast-open' || eventName !== 'iziToast-close') throw 'Event Name has only two possible values: iziToast-open or iziToast-close';
142+
if (eventName !== 'iziToast-open' && eventName !== 'iziToast-close') throw 'Event Name has only two possible values: iziToast-open or iziToast-close';
141143
},
142144
methods: {
143145
show(message, title = '', options = {}) {

0 commit comments

Comments
 (0)