admin-iframe-compatibility
Advanced tools
Comparing version 1.0.21 to 1.0.22
@@ -7,2 +7,9 @@ console.debug(`%c [ADMIN CMS JS] - Running custom js `, 'background: #002833; color: #258bd2'); | ||
var addVtexLoaderScript = function () { | ||
var vtexLoaderScript = document.createElement('script') | ||
vtexLoaderScript.async = false | ||
vtexLoaderScript.src = "//io.vtex.com.br/io-vtex-loader/2.3.1/io-vtex-loader.min.js" | ||
document.body.appendChild(vtexLoaderScript) | ||
} | ||
var handleIframePostMessage = (e) => { | ||
@@ -28,2 +35,3 @@ console.debug(`%c [ADMIN CMS JS] - message received: \n data: ${e.data} `, 'background: #002833; color: #258bd2') | ||
// legacy topbar load | ||
addVtexLoaderScript(); | ||
$(window).on('topbarLoaded.vtex', function () { | ||
@@ -30,0 +38,0 @@ vtex.topbar.topbar = new vtex.topbar.Topbar(); |
{ | ||
"name": "admin-iframe-compatibility", | ||
"version": "1.0.21", | ||
"version": "1.0.22", | ||
"description": "Compatiblity js to adapt catalog admin to iframe", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
13722
284