@pendo/agent 2.333.1 → 2.334.0
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/dist/dom.esm.js +9 -3
- package/dist/pendo.module.js +541 -439
- package/dist/pendo.module.min.js +59 -10
- package/dist/servers.json +16 -7
- package/package.json +1 -1
package/dist/dom.esm.js
CHANGED
|
@@ -6793,6 +6793,7 @@ var ConfigReader = (function () {
|
|
|
6793
6793
|
* @type {boolean}
|
|
6794
6794
|
*/
|
|
6795
6795
|
addOption('disableGuidePseudoStyles', [SNIPPET_SRC, PENDO_CONFIG_SRC], false);
|
|
6796
|
+
addOption('disableImportantStyleAttributes', [SNIPPET_SRC, PENDO_CONFIG_SRC], false);
|
|
6796
6797
|
/**
|
|
6797
6798
|
* Content of badge and target element activated guides will be prefetched on load to improve guide display
|
|
6798
6799
|
* time unless set to `true`.
|
|
@@ -7522,7 +7523,7 @@ function applyMatrix2dRect(matrix2d, rect) {
|
|
|
7522
7523
|
return transformedRect;
|
|
7523
7524
|
}
|
|
7524
7525
|
|
|
7525
|
-
var VERSION = '2.
|
|
7526
|
+
var VERSION = '2.334.0_';
|
|
7526
7527
|
|
|
7527
7528
|
var decodeURIComponent = _.isFunction(window.decodeURIComponent) ? window.decodeURIComponent : _.identity;
|
|
7528
7529
|
|
|
@@ -9025,8 +9026,13 @@ var setStyles = function (element, style) {
|
|
|
9025
9026
|
var importantIndex = value.indexOf('!important');
|
|
9026
9027
|
if (importantIndex !== -1) {
|
|
9027
9028
|
try {
|
|
9028
|
-
var propertyValue = trim.call(
|
|
9029
|
-
|
|
9029
|
+
var propertyValue = trim.call(value.substring(0, importantIndex));
|
|
9030
|
+
if (ConfigReader.get('disableImportantStyleAttributes')) {
|
|
9031
|
+
element.style.setProperty(key, propertyValue);
|
|
9032
|
+
}
|
|
9033
|
+
else {
|
|
9034
|
+
element.style.setProperty(key, propertyValue, 'important');
|
|
9035
|
+
}
|
|
9030
9036
|
return;
|
|
9031
9037
|
}
|
|
9032
9038
|
catch (e) { // Fallback for <=IE8
|