|
|
|
@ -16,10 +16,11 @@ function callback(response) {
|
|
|
|
|
function messageListener(event) { |
|
|
|
|
if (event.data && event.data.action === 'sendUrl') { |
|
|
|
|
const parentUrl = event.data.url; |
|
|
|
|
const isHierarchy = event.data.isHierarchy; |
|
|
|
|
|
|
|
|
|
// Split the remaining path by "/"
|
|
|
|
|
parts = parentUrl.split("/"); |
|
|
|
|
if (parts[7] && parts[7] == "1") { |
|
|
|
|
if (parts[7] && parts[7] == "1" && isHierarchy) { |
|
|
|
|
$.ajax({ |
|
|
|
|
headers: { |
|
|
|
|
"Content-Type": "application/json", |
|
|
|
|