send empty string if no error and not op

This commit is contained in:
James Campos 2011-09-21 01:20:07 -07:00
parent cdbfd99482
commit dcad8e1686
2 changed files with 4 additions and 0 deletions

View File

@ -1552,6 +1552,9 @@
});
} else if (node = $('meta')) {
data = node.content.match(/url=(.+)/)[1];
if (/#/.test(data)) {
data = '';
}
}
return parent.postMessage(data, '*');
});

View File

@ -1205,6 +1205,7 @@ QR =
data = JSON.stringify {textContent, href}
else if node = $ 'meta'
data = node.content.match(/url=(.+)/)[1]
if /#/.test data then data = '' #not op
parent.postMessage data, '*'
#if we're an iframe, parent will blank us