0

I finded similar question

But property after_open doesn't work

I use webpack and npm pnotify package with next code:

entry.js

'use strict';

let PNotify = require('pnotify');

PNotify.prototype.options.styling = 'bootstrap3';

(new PNotify({
  //...
  after_open(ui) {console.log('after_open');},
  //...
}));

Notification show, but without after_open

Where is the problem?

4

1 回答 1

1

使用callbacks需要包括(额外的 pnotify 模块)

'use strict';

let PNotify = require('pnotify');
require('pnotify/dist/pnotify.callbacks.js');

/* next code */
于 2018-03-28T17:16:09.900 回答