diff --git a/r2/r2/public/static/js/embed/post-message.js b/r2/r2/public/static/js/embed/post-message.js index f65dfbc1e..70fe60fab 100644 --- a/r2/r2/public/static/js/embed/post-message.js +++ b/r2/r2/public/static/js/embed/post-message.js @@ -46,9 +46,9 @@ receiveMessage: function(source, type, callback, context) { if (typeof source === 'string') { - type = source; - callback = type; context = callback; + callback = type; + type = source; source = null; }