@micromag/viewer 0.3.449 → 0.3.450
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/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -1464,7 +1464,7 @@ var ViewerMenu = function ViewerMenu(_ref) {
|
|
|
1464
1464
|
// const base =
|
|
1465
1465
|
// typeof window !== 'undefined' ? window.location.origin.replace(/\/+$/, '') : '';
|
|
1466
1466
|
// const path = shareBasePath !== null ? `${base}${shareBasePath}` : base;
|
|
1467
|
-
var base = typeof window !== 'undefined' ? window.location.host : '';
|
|
1467
|
+
var base = typeof window !== 'undefined' ? "".concat(window.location.protocol, "//").concat(window.location.host) : '';
|
|
1468
1468
|
var path = shareBasePath !== null ? "".concat(base).concat(shareBasePath) : base;
|
|
1469
1469
|
return path;
|
|
1470
1470
|
}, [shareBasePath]);
|
package/lib/index.js
CHANGED
|
@@ -1468,7 +1468,7 @@ var ViewerMenu = function ViewerMenu(_ref) {
|
|
|
1468
1468
|
// const base =
|
|
1469
1469
|
// typeof window !== 'undefined' ? window.location.origin.replace(/\/+$/, '') : '';
|
|
1470
1470
|
// const path = shareBasePath !== null ? `${base}${shareBasePath}` : base;
|
|
1471
|
-
var base = typeof window !== 'undefined' ? window.location.host : '';
|
|
1471
|
+
var base = typeof window !== 'undefined' ? "".concat(window.location.protocol, "//").concat(window.location.host) : '';
|
|
1472
1472
|
var path = shareBasePath !== null ? "".concat(base).concat(shareBasePath) : base;
|
|
1473
1473
|
return path;
|
|
1474
1474
|
}, [shareBasePath]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/viewer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.450",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"access": "public",
|
|
91
91
|
"registry": "https://registry.npmjs.org/"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "d0e770e40fb7bf9e5de4fb8ea1ee8b7ee4a72d7a"
|
|
94
94
|
}
|