vrembem 3.0.17 → 3.0.19
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/LICENSE +1 -1
- package/dev/scripts.esm.js +17 -17
- package/dev/scripts.esm.js.map +1 -1
- package/dev/scripts.js +17 -17
- package/dev/scripts.js.map +1 -1
- package/dev/scripts.modern.mjs +3 -3
- package/dev/scripts.modern.mjs.map +1 -1
- package/dev/scripts.umd.js +17 -17
- package/dev/scripts.umd.js.map +1 -1
- package/dist/scripts.esm.js +1 -1
- package/dist/scripts.esm.js.map +1 -1
- package/dist/scripts.js +1 -1
- package/dist/scripts.js.map +1 -1
- package/dist/scripts.modern.mjs.map +1 -1
- package/dist/scripts.umd.js +1 -1
- package/dist/scripts.umd.js.map +1 -1
- package/package.json +26 -26
package/dev/scripts.modern.mjs
CHANGED
|
@@ -665,12 +665,12 @@ async function deregister$2(obj, close = true) {
|
|
|
665
665
|
return this.collection;
|
|
666
666
|
}
|
|
667
667
|
|
|
668
|
-
function
|
|
668
|
+
function E() {
|
|
669
669
|
return getComputedStyle(document.body).getPropertyValue("--vrembem-variable-prefix").trim();
|
|
670
670
|
}
|
|
671
671
|
|
|
672
672
|
function getBreakpoint(drawer) {
|
|
673
|
-
const prefix =
|
|
673
|
+
const prefix = E();
|
|
674
674
|
const bp = drawer.getAttribute(`data-${this.settings.dataBreakpoint}`);
|
|
675
675
|
if (this.settings.breakpoints && this.settings.breakpoints[bp]) {
|
|
676
676
|
return this.settings.breakpoints[bp];
|
|
@@ -1762,7 +1762,7 @@ function getConfig(el, settings) {
|
|
|
1762
1762
|
// Loop through config obj.
|
|
1763
1763
|
for (const prop in config) {
|
|
1764
1764
|
// Get the CSS variable property values.
|
|
1765
|
-
const prefix =
|
|
1765
|
+
const prefix = E();
|
|
1766
1766
|
const value = styles.getPropertyValue(`--${prefix}popover-${prop}`).trim();
|
|
1767
1767
|
|
|
1768
1768
|
// If a value was found, replace the default in config obj.
|