diff --git a/packages/child/index.js b/packages/child/index.js index b8e59cff6..d5a124c95 100644 --- a/packages/child/index.js +++ b/packages/child/index.js @@ -624,7 +624,17 @@ This version of iframe-resizer can auto detect the most suitable ${type} c getId: () => myID, - getOrigin: () => origin, + getOrigin: () => { + advise( + `Deprecated Method + +The getOrigin() method has been deprecated and replaced with getParentOrigin(). Use of this method will be removed in a future version of iframe-resizer. +`, + ) + return origin + }, + + getParentOrigin: () => origin, getPageInfo(callback) { if (typeof callback === 'function') {