From 221f612e2aebe18228b91407957190e58b25d617 Mon Sep 17 00:00:00 2001 From: Rares Preda Date: Mon, 26 Aug 2024 13:36:49 +0300 Subject: [PATCH] test if can fix --- modules/connatixBidAdapter.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/connatixBidAdapter.js b/modules/connatixBidAdapter.js index d5291434973..3f1a73e5ca5 100644 --- a/modules/connatixBidAdapter.js +++ b/modules/connatixBidAdapter.js @@ -13,7 +13,9 @@ import { getWindowTop, isNumber, isStr, - deepSetValue + deepSetValue, + isSafariBrowser, + getWindowSelf } from '../src/utils.js'; import { @@ -78,6 +80,10 @@ export function _getMinSize(sizes) { export function _isIframe() { try { + if (isSafariBrowser()) { + return getWindowSelf() !== getWindowTop(); + } + window.top.document.querySelector('test'); return false; } catch (e) {