videomail-client 8.3.13 → 8.3.14

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.13",
3
+ "version": "8.3.14",
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": [
@@ -36,8 +36,6 @@
36
36
  });
37
37
 
38
38
  videomailClient.show();
39
- videomailClient.unload();
40
- videomailClient.show();
41
39
  </script>
42
40
  </body>
43
41
  </html>
@@ -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.13",
17276
+ "version": "8.3.14",
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": [
@@ -21773,6 +21773,12 @@ var Notifier = function Notifier(visuals, options) {
21773
21773
  (0, _hidden.default)(explanationElement, true);
21774
21774
  }
21775
21775
  }
21776
+ function removeMessageElement() {
21777
+ if (!messageElement) return; // skip
21778
+ notifyElement.removeChild(messageElement);
21779
+ messageElement.innerHTML = null;
21780
+ messageElement = undefined;
21781
+ }
21776
21782
  this.hide = function () {
21777
21783
  cancelEntertainment();
21778
21784
  if (notifyElement) {
@@ -21780,9 +21786,7 @@ var Notifier = function Notifier(visuals, options) {
21780
21786
  notifyElement.classList.remove("blocking");
21781
21787
  }
21782
21788
  if (messageElement) {
21783
- notifyElement.removeChild(messageElement);
21784
- messageElement.innerHTML = null;
21785
- messageElement = undefined;
21789
+ removeMessageElement();
21786
21790
  }
21787
21791
  hideExplanation();
21788
21792
  };
@@ -21806,6 +21810,10 @@ var Notifier = function Notifier(visuals, options) {
21806
21810
  var hideForm = notifyOptions.hideForm ? notifyOptions.hideForm : false;
21807
21811
  var classList = notifyOptions.classList ? notifyOptions.classList : false;
21808
21812
  var removeDimensions = notifyOptions.removeDimensions ? notifyOptions.removeDimensions : false;
21813
+ if (notifyElement) {
21814
+ // Always remove previous one before setting a new one
21815
+ removeMessageElement();
21816
+ }
21809
21817
  if (!messageElement) {
21810
21818
  if (notifyElement) {
21811
21819
  messageElement = (0, _hyperscript.default)("h2", {