@mjhls/mjh-framework 1.0.262 → 1.0.264

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.
@@ -2010,6 +2010,11 @@ var HamMagazine = function HamMagazine(props) {
2010
2010
  isOpen = _useState8[0],
2011
2011
  setIsOpen = _useState8[1];
2012
2012
 
2013
+ var _useState9 = useState(0),
2014
+ _useState10 = _slicedToArray(_useState9, 2),
2015
+ resolution = _useState10[0],
2016
+ setResolution = _useState10[1];
2017
+
2013
2018
  useEffect(function () {
2014
2019
  document.addEventListener('scroll', trackScrolling);
2015
2020
  return function () {
@@ -2023,6 +2028,26 @@ var HamMagazine = function HamMagazine(props) {
2023
2028
  setUserAgent(navigator.userAgent.toString());
2024
2029
  }, []);
2025
2030
 
2031
+ useEffect(function () {
2032
+ if (resolution === 0) {
2033
+ setResolution(window.innerWidth);
2034
+ }
2035
+ var handleResize = function handleResize() {
2036
+ if (resolution === 0) {
2037
+ setResolution(window.innerWidth);
2038
+ } else {
2039
+ if (window.innerWidth < 768 && resolution >= 768) {
2040
+ console.log('Detected Mobile Resolution');
2041
+ window.location.reload();
2042
+ } else if (window.innerWidth >= 768 && resolution < 768) {
2043
+ console.log('Detected Tablet/Desktop Resolution');
2044
+ window.location.reload();
2045
+ }
2046
+ }
2047
+ };
2048
+ window.addEventListener('resize', handleResize);
2049
+ }, [resolution]);
2050
+
2026
2051
  useEffect(function () {
2027
2052
  setScreenWidth(parseInt(window.innerWidth));
2028
2053
  }, []);
@@ -18,7 +18,7 @@ import './get-b2201dc8.js';
18
18
  import 'react-bootstrap';
19
19
  import './index.esm-536609db.js';
20
20
  import 'react-bootstrap/Button';
21
- export { T as default } from './Normal-e2c3ca60.js';
21
+ export { T as default } from './Normal-e86a38cf.js';
22
22
  import 'react-bootstrap/ListGroup';
23
23
  import 'next/head';
24
24
  import 'react-bootstrap/Nav';
@@ -13,7 +13,7 @@ import 'next/link';
13
13
  import { withRouter } from 'next/router';
14
14
  import 'react-dom';
15
15
  import './index-5f9f807a.js';
16
- import { Y as YoutubeGroup } from './YoutubeGroup-78d93d44.js';
16
+ import { Y as YoutubeGroup } from './YoutubeGroup-f59297bb.js';
17
17
  import { a as IoIosArrowForward } from './index.esm-536609db.js';
18
18
 
19
19
  var VideoSeriesListing = function (_React$Component) {