diff --git a/packages/core/index.js b/packages/core/index.js index c3051c550..bb2afa8d4 100644 --- a/packages/core/index.js +++ b/packages/core/index.js @@ -1087,6 +1087,13 @@ The sizeWidth, sizeHeight and autoResize options have been rep setDirection() setOffsetSize(options?.offsetSize || options?.offset) + + if (options?.offset) { + advise( + `Deprecated option\n\n The offset option has been renamed to offsetSize. Use of the old name will be removed in a future version of iframe-resizer.`, + ) + } + getPostMessageTarget() settings[iframeId].targetOrigin =