Browse Source

only assume svg preview ability in opera, WebKit and Gecko

tags/v0.99.beta17
Ben Wiley Sittler bsittler 16 years ago
parent
commit
1e933f8d50
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      caca-php/examples/www/export.php

+ 7
- 2
caca-php/examples/www/export.php View File

@@ -45,9 +45,14 @@ update_preview = function (select)
var iframe_map = {
'html': true,
'html3': true,
'bbfr': true,
'svg': true
'bbfr': true
};
if (self.opera
||
(('' + navigator.userAgent).match(/.*(WebKit|Gecko).*/)))
{
iframe_map['svg'] = true;
}
var e;
try
{


Loading…
Cancel
Save