Skip to content

Commit

Permalink
Added deprecation advise
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjbradshaw committed Jul 11, 2024
1 parent 77918ce commit d593eac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,13 @@ The <b>sizeWidth</>, <b>sizeHeight</> and <b>autoResize</> options have been rep

setDirection()
setOffsetSize(options?.offsetSize || options?.offset)

if (options?.offset) {
advise(
`<rb>Deprecated option</>\n\n The <b>offset</> option has been renamed to <b>offsetSize</>. Use of the old name will be removed in a future version of <i>iframe-resizer</>.`,
)
}

getPostMessageTarget()

settings[iframeId].targetOrigin =
Expand Down

0 comments on commit d593eac

Please sign in to comment.