videomail-client 8.3.14 → 8.3.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "8.3.14",
3
+ "version": "8.3.15",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "author": "Michael Heuberger <michael.heuberger@binarykitchen.com>",
6
6
  "contributors": [
@@ -17273,7 +17273,7 @@ function wrappy (fn, cb) {
17273
17273
  },{}],114:[function(_dereq_,module,exports){
17274
17274
  module.exports={
17275
17275
  "name": "videomail-client",
17276
- "version": "8.3.14",
17276
+ "version": "8.3.15",
17277
17277
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
17278
17278
  "author": "Michael Heuberger <michael.heuberger@binarykitchen.com>",
17279
17279
  "contributors": [
@@ -21775,9 +21775,10 @@ var Notifier = function Notifier(visuals, options) {
21775
21775
  }
21776
21776
  function removeMessageElement() {
21777
21777
  if (!messageElement) return; // skip
21778
- notifyElement.removeChild(messageElement);
21778
+
21779
21779
  messageElement.innerHTML = null;
21780
21780
  messageElement = undefined;
21781
+ notifyElement.removeChild(messageElement);
21781
21782
  }
21782
21783
  this.hide = function () {
21783
21784
  cancelEntertainment();
@@ -21799,31 +21800,23 @@ var Notifier = function Notifier(visuals, options) {
21799
21800
  this.isBuilt = function () {
21800
21801
  return built;
21801
21802
  };
21802
- this.notify = function (message, explanation, notifyOptions) {
21803
- options.debug("Notifier: notify()");
21804
- if (!notifyOptions) {
21805
- notifyOptions = {};
21806
- }
21803
+ this.notify = function (message, explanation) {
21804
+ var notifyOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
21805
+ options.debug("Notifier: notify()", message, explanation);
21807
21806
  var stillWait = notifyOptions.stillWait ? notifyOptions.stillWait : false;
21808
21807
  var entertain = notifyOptions.entertain ? notifyOptions.entertain : false;
21809
21808
  var blocking = notifyOptions.blocking ? notifyOptions.blocking : false;
21810
21809
  var hideForm = notifyOptions.hideForm ? notifyOptions.hideForm : false;
21811
21810
  var classList = notifyOptions.classList ? notifyOptions.classList : false;
21812
21811
  var removeDimensions = notifyOptions.removeDimensions ? notifyOptions.removeDimensions : false;
21813
- if (notifyElement) {
21814
- // Always remove previous one before setting a new one
21815
- removeMessageElement();
21816
- }
21817
- if (!messageElement) {
21818
- if (notifyElement) {
21819
- messageElement = (0, _hyperscript.default)("h2", {
21820
- className: "message"
21821
- });
21822
- if (explanationElement) {
21823
- notifyElement.insertBefore(messageElement, explanationElement);
21824
- } else {
21825
- notifyElement.appendChild(messageElement);
21826
- }
21812
+ if (!messageElement && notifyElement) {
21813
+ messageElement = (0, _hyperscript.default)("h2", {
21814
+ className: "message"
21815
+ });
21816
+ if (explanationElement) {
21817
+ notifyElement.insertBefore(messageElement, explanationElement);
21818
+ } else {
21819
+ notifyElement.appendChild(messageElement);
21827
21820
  }
21828
21821
  }
21829
21822
  if (notifyElement) {