From 559237c49c87e092dfb7178107ab764ddfa5f433 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 22 May 2020 00:20:12 +0300 Subject: [PATCH] ver 14 in klanviever --- app/pub/scripts/klanviewer.js | 6 +++++- app/views/layout.phtml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/pub/scripts/klanviewer.js b/app/pub/scripts/klanviewer.js index 6a0b497..93aaa13 100644 --- a/app/pub/scripts/klanviewer.js +++ b/app/pub/scripts/klanviewer.js @@ -167,7 +167,11 @@ function startpdfviewer(newcurr){ var detect = new MobileDetect(window.navigator.userAgent); - if (category == 1 || detect.phone()){ + if (category == 1){ + embed = false; + } + + if (detect.phone()){ embed = false; } diff --git a/app/views/layout.phtml b/app/views/layout.phtml index 640a533..708b610 100644 --- a/app/views/layout.phtml +++ b/app/views/layout.phtml @@ -4,7 +4,7 @@ "> - +