Changeset 3254 for libcaca


Ignore:
Timestamp:
Nov 3, 2008, 11:06:33 PM (11 years ago)
Author:
bsittler
Message:

only assume svg preview ability in opera, WebKit? and Gecko

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca-php/examples/www/export.php

    r3252 r3254  
    4646                'html': true,
    4747                'html3': true,
    48                 'bbfr': true,
    49                 'svg': true
     48                'bbfr': true
    5049        };
     50        if (self.opera
     51                ||
     52                (('' + navigator.userAgent).match(/.*(WebKit|Gecko).*/)))
     53        {
     54                iframe_map['svg'] = true;
     55        }
    5156        var e;
    5257        try
Note: See TracChangeset for help on using the changeset viewer.