wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r13112: LJCOMCOMREAD-381: Remove android banners...

Committer: wisest-owl
LJCOMCOMREAD-381: Remove android banners for iOS >= 6

U   trunk/cgi-bin/LJ/Hooks/S2Styles.pm
Modified: trunk/cgi-bin/LJ/Hooks/S2Styles.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/S2Styles.pm	2013-01-15 12:19:54 UTC (rev 13111)
+++ trunk/cgi-bin/LJ/Hooks/S2Styles.pm	2013-01-16 13:38:40 UTC (rev 13112)
@@ -32,6 +32,7 @@
         my $uri = $r->hostname.$r->uri;
         my $head_meta = qq{<meta name="apple-itunes-app" content="app-id=$app_store_id, app-argument=http://$uri">};
         $$str_ref .= $head_meta;
+        return if LJ::Request->header_in('User-Agent') =~ /OS [67]_/;
         LJ::need_res(qw{
             js/jquery/misc/jquery.lj.commreader.js
             templates/Widgets/commreader.tmpl

Tags: ljcom, pm, wisest-owl
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments