Skip to content

Commit

Permalink
Rename getOrigin -> getParentOrigin
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjbradshaw committed Oct 23, 2024
1 parent e62a2df commit 05ce000
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/child/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,17 @@ This version of <i>iframe-resizer</> can auto detect the most suitable ${type} c

getId: () => myID,

getOrigin: () => origin,
getOrigin: () => {
advise(
`<rb>Deprecated Method</>
The <b>getOrigin()</> method has been deprecated and replaced with <b>getParentOrigin()</>. Use of this method will be removed in a future version of <i>iframe-resizer</>.
`,
)
return origin
},

getParentOrigin: () => origin,

getPageInfo(callback) {
if (typeof callback === 'function') {
Expand Down

0 comments on commit 05ce000

Please sign in to comment.