@mjhls/mjh-framework 1.0.459 → 1.0.460

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # mjh-framework v. 1.0.459
1
+ # mjh-framework v. 1.0.460
2
2
 
3
3
  > Foundation Framework
4
4
 
@@ -7072,6 +7072,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7072
7072
  var get1 = router && router.asPath ? router.asPath.split('/')[0] : '';
7073
7073
  var get2 = router && router.asPath ? router.asPath.split('/')[1] : '';
7074
7074
  var get3 = router && router.asPath ? router.asPath.split('/')[2].split('?')[0] : '';
7075
+
7075
7076
  // Once component mounts, set the variables
7076
7077
  React.useEffect(function () {
7077
7078
  var params = new URL(document.location).searchParams;
@@ -7116,7 +7117,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7116
7117
 
7117
7118
  React.useEffect(function () {
7118
7119
  if (vidLoaded == true) {
7119
- document.title = nodes.videos[series - 1].title;
7120
+ var params = new URL(document.location).searchParams;
7121
+ var seriesVid = params.get('seriesVid');
7122
+ var vidTitle = nodes.videos[series - 1].title;
7123
+ var originalTitle = document.title;
7124
+ if (seriesVid) {
7125
+ document.title = vidTitle + ' | ' + originalTitle;
7126
+ }
7120
7127
  }
7121
7128
  }, [vidLoaded]);
7122
7129
 
@@ -7066,6 +7066,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7066
7066
  var get1 = router && router.asPath ? router.asPath.split('/')[0] : '';
7067
7067
  var get2 = router && router.asPath ? router.asPath.split('/')[1] : '';
7068
7068
  var get3 = router && router.asPath ? router.asPath.split('/')[2].split('?')[0] : '';
7069
+
7069
7070
  // Once component mounts, set the variables
7070
7071
  useEffect(function () {
7071
7072
  var params = new URL(document.location).searchParams;
@@ -7110,7 +7111,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7110
7111
 
7111
7112
  useEffect(function () {
7112
7113
  if (vidLoaded == true) {
7113
- document.title = nodes.videos[series - 1].title;
7114
+ var params = new URL(document.location).searchParams;
7115
+ var seriesVid = params.get('seriesVid');
7116
+ var vidTitle = nodes.videos[series - 1].title;
7117
+ var originalTitle = document.title;
7118
+ if (seriesVid) {
7119
+ document.title = vidTitle + ' | ' + originalTitle;
7120
+ }
7114
7121
  }
7115
7122
  }, [vidLoaded]);
7116
7123
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.459",
3
+ "version": "1.0.460",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",