bam32bittheme
Advanced tools
Comparing version 2.1.93-beta.2 to 2.1.93-beta.3
@@ -120,2 +120,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "PostMessageProvider", { | ||
enumerable: true, | ||
get: function get() { | ||
return _PostMessageProvider.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "QuickSearchTable", { | ||
@@ -264,2 +270,3 @@ enumerable: true, | ||
var _formatDateUtils = require("./utils/formatDateUtils"); | ||
var _PostMessageProvider = _interopRequireDefault(require("./components/PostMessageProvider")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
@@ -12,3 +12,2 @@ "use strict"; | ||
require("core-js/modules/es.string.replace.js"); | ||
require("core-js/modules/es.string.starts-with.js"); | ||
require("core-js/modules/web.dom-collections.iterator.js"); | ||
@@ -21,3 +20,2 @@ var _KeyboardArrowUp = _interopRequireDefault(require("@mui/icons-material/KeyboardArrowUp")); | ||
var _Sidebar = _interopRequireDefault(require("./Sidebar")); | ||
var _Constant = require("../Constant"); | ||
const _excluded = ["children"]; | ||
@@ -110,30 +108,2 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | ||
}, [bodyPadding]); | ||
(0, _react.useEffect)(() => { | ||
const handleMessage = event => { | ||
var _event$origin; | ||
console.log(event.origin); | ||
console.log('HUB_PROD_URL: ', _Constant.HUB_PROD_URL); | ||
console.log('PORTAL_PROD_URL: ', _Constant.PORTAL_PROD_URL); | ||
if ((_event$origin = event.origin) !== null && _event$origin !== void 0 && _event$origin.startsWith(_Constant.HUB_PROD_URL)) { | ||
var _event$source; | ||
console.log(event.data); | ||
(_event$source = event.source) === null || _event$source === void 0 || _event$source.postMessage('ok', { | ||
targetOrigin: "".concat(_Constant.HUB_PROD_URL).concat(_Constant.portalRoutes.internalPortal) | ||
}); | ||
if (event.data) { | ||
const data = JSON.parse(event.data); | ||
console.log('event data json: ', event.data); | ||
Object.entries(data).forEach(_ref3 => { | ||
let [key, value] = _ref3; | ||
return localStorage.setItem(key, value); | ||
}); | ||
window.location.href = _Constant.PORTAL_PROD_URL + _Constant.portalRoutes.basename + _Constant.portalRoutes.redirect; | ||
} | ||
} | ||
}; | ||
window.addEventListener('message', handleMessage); | ||
return () => { | ||
window.removeEventListener('message', handleMessage); | ||
}; | ||
}, []); | ||
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Main, { | ||
@@ -140,0 +110,0 @@ component: "main", |
{ | ||
"name": "bam32bittheme", | ||
"version": "2.1.93-beta.2", | ||
"version": "2.1.93-beta.3", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "32bit Theme for Material UI v5.x", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1573183
65
5390