amic 1 mēnesi atpakaļ
vecāks
revīzija
603ef841ba
2 mainītis faili ar 7 papildinājumiem un 2 dzēšanām
  1. 1 0
      .gitignore
  2. 6 2
      views/_etc/banners/BannersImports.php

+ 1 - 0
.gitignore

@@ -9,5 +9,6 @@ node_modules
 /web/pr2
 /web/uploads
 /web/project
+/web/turbo-del.xml
 composer.lock
 .DS_store

+ 6 - 2
views/_etc/banners/BannersImports.php

@@ -9,10 +9,14 @@
     window.Ya.adfoxCode || (window.Ya.adfoxCode = {});
     window.Ya.adfoxCode.hbCallbacks || (window.Ya.adfoxCode.hbCallbacks = []);
 </script>
+<? if( !Yii::$app->deviceDetect->isSafari() ) {
+?>
 <script src="https://yandex.ru/ads/system/header-bidding.js" async></script>
 <script src="https://yandex.ru/ads/system/context.js" async ></script>
-
-<?php if(Yii::$app->controller->action->id!="index" && Yii::$app->deviceDetect->isMobile()):?>
+<?
+	}
+?>
+<?php if(Yii::$app->controller->action->id!="index" && Yii::$app->deviceDetect->isMobile() && !Yii::$app->deviceDetect->isSafari()):?>
 
     <script>
         (function () {