diff --git a/dist/vue-notifications.js b/dist/vue-notifications.js index f49c508..9d4b3e1 100644 --- a/dist/vue-notifications.js +++ b/dist/vue-notifications.js @@ -50,9 +50,11 @@ function showMessage(config, vueApp) { const valuesObj = getValues(config, vueApp); const isMethodOverridden = VueNotifications.pluginOptions[valuesObj.type]; const method = isMethodOverridden ? VueNotifications.pluginOptions[valuesObj.type] : console.log; - method(valuesObj, vueApp); + const reference = method(valuesObj, vueApp); if (config.cb) config.cb(); + + return reference; } function setMethod(vueApp, name, componentOptions) { let { methods } = componentOptions; @@ -75,7 +77,7 @@ function makeMethod(vueApp, methodName, componentOptions) { ...methodConfig, ...config }; - showMessage(newConfig, vueApp); + return showMessage(newConfig, vueApp); }; } function initVueNotificationPlugin(vueApp, notifications) {