diff --git a/app/pub/scripts/klanviewer.js b/app/pub/scripts/klanviewer.js index f41e5c6..24b7ed0 100644 --- a/app/pub/scripts/klanviewer.js +++ b/app/pub/scripts/klanviewer.js @@ -171,19 +171,17 @@ function startpdfviewer(newcurr){ if (category == 1){ embed = false; } - elseif (category == 3){ + else if (category == 3){ embed = true; } - - if (detect.phone()){ - embed = false; - } - if(isOpera){ embed = true; } - + + if (detect.phone()){ + embed = false; + } if (embed){ diff --git a/app/views/layout.phtml b/app/views/layout.phtml index 5b651c0..9c4bb92 100644 --- a/app/views/layout.phtml +++ b/app/views/layout.phtml @@ -4,7 +4,7 @@ "> - +