videomail-client 8.3.13 → 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
|
@@ -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.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": [
|
|
@@ -21773,6 +21773,13 @@ 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
|
+
|
|
21779
|
+
messageElement.innerHTML = null;
|
|
21780
|
+
messageElement = undefined;
|
|
21781
|
+
notifyElement.removeChild(messageElement);
|
|
21782
|
+
}
|
|
21776
21783
|
this.hide = function () {
|
|
21777
21784
|
cancelEntertainment();
|
|
21778
21785
|
if (notifyElement) {
|
|
@@ -21780,9 +21787,7 @@ var Notifier = function Notifier(visuals, options) {
|
|
|
21780
21787
|
notifyElement.classList.remove("blocking");
|
|
21781
21788
|
}
|
|
21782
21789
|
if (messageElement) {
|
|
21783
|
-
|
|
21784
|
-
messageElement.innerHTML = null;
|
|
21785
|
-
messageElement = undefined;
|
|
21790
|
+
removeMessageElement();
|
|
21786
21791
|
}
|
|
21787
21792
|
hideExplanation();
|
|
21788
21793
|
};
|
|
@@ -21795,27 +21800,23 @@ var Notifier = function Notifier(visuals, options) {
|
|
|
21795
21800
|
this.isBuilt = function () {
|
|
21796
21801
|
return built;
|
|
21797
21802
|
};
|
|
21798
|
-
this.notify = function (message, explanation
|
|
21799
|
-
|
|
21800
|
-
|
|
21801
|
-
notifyOptions = {};
|
|
21802
|
-
}
|
|
21803
|
+
this.notify = function (message, explanation) {
|
|
21804
|
+
var notifyOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
21805
|
+
options.debug("Notifier: notify()", message, explanation);
|
|
21803
21806
|
var stillWait = notifyOptions.stillWait ? notifyOptions.stillWait : false;
|
|
21804
21807
|
var entertain = notifyOptions.entertain ? notifyOptions.entertain : false;
|
|
21805
21808
|
var blocking = notifyOptions.blocking ? notifyOptions.blocking : false;
|
|
21806
21809
|
var hideForm = notifyOptions.hideForm ? notifyOptions.hideForm : false;
|
|
21807
21810
|
var classList = notifyOptions.classList ? notifyOptions.classList : false;
|
|
21808
21811
|
var removeDimensions = notifyOptions.removeDimensions ? notifyOptions.removeDimensions : false;
|
|
21809
|
-
if (!messageElement) {
|
|
21810
|
-
|
|
21811
|
-
|
|
21812
|
-
|
|
21813
|
-
|
|
21814
|
-
|
|
21815
|
-
|
|
21816
|
-
|
|
21817
|
-
notifyElement.appendChild(messageElement);
|
|
21818
|
-
}
|
|
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);
|
|
21819
21820
|
}
|
|
21820
21821
|
}
|
|
21821
21822
|
if (notifyElement) {
|