Skip to content

Commit

Permalink
make onResizeSuccess and onResizeDenied listen to the right events
Browse files Browse the repository at this point in the history
  • Loading branch information
camelburrito committed Feb 19, 2016
1 parent d977710 commit 49070bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 3p/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function updateVisibilityState(global) {
* observes for resize status messages.
*/
function onResizeSuccess(observerCallback) {
return listenParent(window, 'embed-resize-changed', data => {
return listenParent(window, 'embed-size-changed', data => {
observerCallback(data.requestedHeight);
});
}
Expand All @@ -242,7 +242,7 @@ function onResizeSuccess(observerCallback) {
* observes for resize status messages.
*/
function onResizeDenied(observerCallback) {
return listenParent(window, 'embed-resize-denied', data => {
return listenParent(window, 'embed-size-denied', data => {
observerCallback(data.requestedHeight);
});
}
Expand Down

0 comments on commit 49070bd

Please sign in to comment.