web-manager 3.1.53 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +18 -14
- package/package.json +2 -2
package/index.js
CHANGED
@@ -1103,19 +1103,23 @@ function Manager() {
|
|
1103
1103
|
if (!proceed) { return }
|
1104
1104
|
|
1105
1105
|
var $el = document.getElementById('modal-exit-popup');
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1106
|
+
try {
|
1107
|
+
var modal = new bootstrap.Modal($el);
|
1108
|
+
modal.show();
|
1109
|
+
$el.removeAttribute('hidden');
|
1110
|
+
|
1111
|
+
var $title = $el.querySelector('.modal-title');
|
1112
|
+
var $message = $el.querySelector('.modal-body');
|
1113
|
+
var $okButton = $el.querySelector('.modal-footer .btn-primary');
|
1114
|
+
var config = exitPopupSettings.config;
|
1115
|
+
|
1116
|
+
$title.innerHTML = config.title;
|
1117
|
+
$message.innerHTML = config.message;
|
1118
|
+
$okButton.innerHTML = config.okButton.text;
|
1119
|
+
$okButton.setAttribute('href', config.okButton.link);
|
1120
|
+
} catch (e) {
|
1121
|
+
console.warn(e);
|
1122
|
+
}
|
1119
1123
|
}
|
1120
1124
|
|
1121
1125
|
/*
|
@@ -1394,7 +1398,7 @@ function Manager() {
|
|
1394
1398
|
event.user.uid = storage.get('user.auth.uid', '');
|
1395
1399
|
// event.user.ip = storage.get('user.ip', '');
|
1396
1400
|
|
1397
|
-
console.
|
1401
|
+
console.error('[SENTRY] Caught error', event, hint);
|
1398
1402
|
|
1399
1403
|
if (self.isDevelopment()) {
|
1400
1404
|
return null;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "web-manager",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.2.00",
|
4
4
|
"description": "Easily access important variables such as the query string, current domain, and current page in a single object.",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -36,4 +36,4 @@
|
|
36
36
|
"firebase": "^9.23.0",
|
37
37
|
"lazysizes": "^5.3.2"
|
38
38
|
}
|
39
|
-
}
|
39
|
+
}
|