From: Tara L Andrews Date: Tue, 18 Sep 2012 21:21:25 +0000 (+0200) Subject: fix compatibility check X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7c25980fc416b57467382b3d05f9e7e9e7d0eec9;p=scpubgit%2Fstemmaweb.git fix compatibility check --- diff --git a/root/js/componentload.js b/root/js/componentload.js index 243d8f7..522c879 100644 --- a/root/js/componentload.js +++ b/root/js/componentload.js @@ -299,7 +299,7 @@ function _get_url( els ) { $(document).ready( function() { // See if we have the browser functionality we need // TODO Also think of a test for SVG readiness - if( typeof window.FileReader && typeof window.File ) { + if( !!window.FileReader && !!window.File ) { $('#compatibility_check').empty(); }