videomail-client 8.3.12 → 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
|
@@ -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.
|
|
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": [
|
|
@@ -21715,10 +21715,14 @@ var Notifier = function Notifier(visuals, options) {
|
|
|
21715
21715
|
}
|
|
21716
21716
|
function setMessage(message, messageOptions) {
|
|
21717
21717
|
var problem = messageOptions.problem ? messageOptions.problem : false;
|
|
21718
|
-
if (messageElement
|
|
21719
|
-
|
|
21718
|
+
if (messageElement) {
|
|
21719
|
+
if (message.length > 0) {
|
|
21720
|
+
messageElement.innerHTML = (problem ? "☹ " : "") + message;
|
|
21721
|
+
} else {
|
|
21722
|
+
options.logger.warn("Not going to update messageElement because message is empty", message);
|
|
21723
|
+
}
|
|
21720
21724
|
} else {
|
|
21721
|
-
options.logger.warn("Unable to
|
|
21725
|
+
options.logger.warn("Unable to update messageElement because none is defined", message);
|
|
21722
21726
|
}
|
|
21723
21727
|
}
|
|
21724
21728
|
this.error = function (err) {
|
|
@@ -21769,6 +21773,12 @@ var Notifier = function Notifier(visuals, options) {
|
|
|
21769
21773
|
(0, _hidden.default)(explanationElement, true);
|
|
21770
21774
|
}
|
|
21771
21775
|
}
|
|
21776
|
+
function removeMessageElement() {
|
|
21777
|
+
if (!messageElement) return; // skip
|
|
21778
|
+
notifyElement.removeChild(messageElement);
|
|
21779
|
+
messageElement.innerHTML = null;
|
|
21780
|
+
messageElement = undefined;
|
|
21781
|
+
}
|
|
21772
21782
|
this.hide = function () {
|
|
21773
21783
|
cancelEntertainment();
|
|
21774
21784
|
if (notifyElement) {
|
|
@@ -21776,7 +21786,7 @@ var Notifier = function Notifier(visuals, options) {
|
|
|
21776
21786
|
notifyElement.classList.remove("blocking");
|
|
21777
21787
|
}
|
|
21778
21788
|
if (messageElement) {
|
|
21779
|
-
|
|
21789
|
+
removeMessageElement();
|
|
21780
21790
|
}
|
|
21781
21791
|
hideExplanation();
|
|
21782
21792
|
};
|
|
@@ -21800,6 +21810,10 @@ var Notifier = function Notifier(visuals, options) {
|
|
|
21800
21810
|
var hideForm = notifyOptions.hideForm ? notifyOptions.hideForm : false;
|
|
21801
21811
|
var classList = notifyOptions.classList ? notifyOptions.classList : false;
|
|
21802
21812
|
var removeDimensions = notifyOptions.removeDimensions ? notifyOptions.removeDimensions : false;
|
|
21813
|
+
if (notifyElement) {
|
|
21814
|
+
// Always remove previous one before setting a new one
|
|
21815
|
+
removeMessageElement();
|
|
21816
|
+
}
|
|
21803
21817
|
if (!messageElement) {
|
|
21804
21818
|
if (notifyElement) {
|
|
21805
21819
|
messageElement = (0, _hyperscript.default)("h2", {
|