Fixed windows-related test failures (that string format doesn't work with \r\n line...
[lhc/web/wiklou.git] / resources / startup.js
1 /**
2 * This script provides a function which is run to evaluate whether or not to
3 * continue loading the jquery and mediawiki modules. This code should work on
4 * even the most ancient of browsers, so be very careful when editing.
5 */
6 /**
7 * Returns false when run in a black-listed browser
8 *
9 * This function will be deleted after it's used, so do not expand it to be
10 * generally useful beyond startup
11 *
12 * jQuery has minimum requirements of:
13 * * Firefox 2.0+
14 * * Internet Explorer 6+
15 * * Safari 3+
16 * * Opera 9+
17 * * Chrome 1+
18 */
19 var isCompatible = function() {
20 // IE < 6
21 if ( navigator.appVersion.indexOf( 'MSIE' ) !== -1
22 && parseFloat( navigator.appVersion.split( 'MSIE' )[1] ) < 6 )
23 {
24 return false;
25 }
26 // TODO: Firefox < 2
27 // TODO: Safari < 3
28 // TODO: Opera < 9
29 // TODO: Chrome < 1
30 return true;
31 };
32 /**
33 * The startUp() function will be generated and added here (at the bottom)
34 */