sr-npm 1.7.236 → 1.7.238

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.236",
3
+ "version": "1.7.238",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -172,11 +172,14 @@ async function init(_$w) {
172
172
  _$w('#closeFiltersButton').onClick(()=>{
173
173
  _$w('#dropdownsContainer, #closeFiltersButton').collapse();
174
174
  });
175
+ console.log("printing stuff")
176
+ let formFactor = await window.formFactor();
177
+ console.log("formFactor: ", formFactor);
175
178
 
176
- // if (await window.formFactor() === "Mobile") {
177
- // console.log("expanding filters button");
178
- // await _$w('#closeFiltersButton').expand();
179
- // }
179
+ if (formFactor === "Mobile") {
180
+ console.log("expanding filters button");
181
+ await _$w('#closeFiltersButton').expand();
182
+ }
180
183
  }
181
184
 
182
185
  async function applyFilters(_$w, skipUrlUpdate = false) {