From 1e933f8d506f99b45bdbd86931505137182e2d74 Mon Sep 17 00:00:00 2001 From: Ben Wiley Sittler Date: Mon, 3 Nov 2008 22:06:33 +0000 Subject: [PATCH] only assume svg preview ability in opera, WebKit and Gecko --- caca-php/examples/www/export.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/caca-php/examples/www/export.php b/caca-php/examples/www/export.php index e39b09f..63e670b 100644 --- a/caca-php/examples/www/export.php +++ b/caca-php/examples/www/export.php @@ -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 {