@ulu/frontend 0.0.14 → 0.0.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.
|
@@ -25,7 +25,7 @@ export class CssBreakpoints {
|
|
|
25
25
|
valueFromPsuedo: false,
|
|
26
26
|
customProperty: "--breakpoint",
|
|
27
27
|
psuedoSelector: ':before',
|
|
28
|
-
order: ["small", "medium", "large"],
|
|
28
|
+
order: ["none", "small", "medium", "large"],
|
|
29
29
|
debug: false
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
@@ -76,6 +76,10 @@ export class CssBreakpoints {
|
|
|
76
76
|
*/
|
|
77
77
|
update() {
|
|
78
78
|
const name = this.getBreakpoint();
|
|
79
|
+
if (!name) {
|
|
80
|
+
logError(this, 'Unable to get current breakpoint, maybe order is incorrect? Breakpoint check skipped!');
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
79
83
|
// console.log('name:\n', name);
|
|
80
84
|
if (name === this.active) return;
|
|
81
85
|
// this.log(`current breakpoint: ${ name }`);
|