X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/347e058a4a7de63c7f0b92091daa51387689771d..HEAD:/browser.plp diff --git a/browser.plp b/browser.plp index 06e55e5..6d75d4a 100644 --- a/browser.plp +++ b/browser.plp @@ -4,7 +4,7 @@ no if $] >= 5.018, warnings => 'experimental::smartmatch'; Html({ title => 'browser compatibility cheat sheet', - version => '1.5', + version => '1.6', description => [ "Compatibility table of new web features (HTML5, CSS3, SVG, Javascript)", "comparing support and usage share for all popular browser versions.", @@ -20,7 +20,7 @@ Html({ say "

Browser compatibility

\n"; -my $caniuse = do 'data/browser/support.inc.pl' or die $@ || $!; +my $caniuse = Data('data/browser/support'); my %CSTATS = ( 'n' => 'l1', @@ -94,8 +94,8 @@ given ($get{usage} // 'wm') { 'Identifier must be alphanumeric name or 0.', ]); } - $canihas = do "data/browser/usage-$_.inc.pl" or do { - Alert('Browser usage data not found', $@ || $!); + $canihas = eval { Data("data/browser/usage-$_") } or do { + Alert('Browser usage data not found', $@); break; }; $usage = $_;