opnform/client/composables/useIsIframe.js

7 lines
157 B
JavaScript
Raw Normal View History

2023-12-09 14:47:03 +00:00
export const useIsIframe = () => {
if (process.client) {
return window.location !== window.parent.location || window.frameElement
}
return false
}