@leapdev/gui 0.2.244 → 0.2.245

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.
@@ -169,7 +169,7 @@
169
169
  if (window.location.pathname.includes('/article')) {
170
170
  window.urlHash.observe();
171
171
  }
172
- console.log(window.urlHash.topicsTabAccordion);
172
+ // console.log(window.urlHash.topicsTabAccordion);
173
173
  }
174
174
  });
175
175
 
@@ -209,10 +209,10 @@
209
209
  });
210
210
  },
211
211
  observe: function () {
212
- let previousState = window.history.state;
212
+ let previousState = window.location.pathname;
213
213
  let t = setInterval(function () {
214
- if (previousState !== window.history.state) {
215
- previousState = window.history.state;
214
+ if (previousState !== window.location.pathname) {
215
+ previousState = window.location.pathname;
216
216
  clearInterval(t);
217
217
  window.urlHash.reset();
218
218
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leapdev/gui",
3
- "version": "0.2.244",
3
+ "version": "0.2.245",
4
4
  "description": "LEAP GUI",
5
5
  "author": "LEAP Dev",
6
6
  "license": "ISC",