mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[main.default.js] detect Safari < 6
This commit is contained in:
+5
-3
@@ -100,14 +100,16 @@
|
||||
);
|
||||
},
|
||||
|
||||
// is IE8? for determine the jQuery version to use (optional)
|
||||
ie8 = (typeof window.addEventListener === 'undefined' && typeof document.getElementsByClassName === 'undefined');
|
||||
// is IE8 or :? for determine the jQuery version to use (optional)
|
||||
old = (typeof window.addEventListener === 'undefined' && typeof document.getElementsByClassName === 'undefined')
|
||||
||
|
||||
(!window.chrome && !document.unqueID && !window.opera && !window.sidebar && 'WebkitAppearance' in document.documentElement.style && document.body.style && typeof document.body.style.webkitFilter === 'undefined');
|
||||
|
||||
// config of RequireJS (REQUIRED)
|
||||
require.config({
|
||||
baseUrl : 'js',
|
||||
paths : {
|
||||
'jquery' : '//cdnjs.cloudflare.com/ajax/libs/jquery/'+(ie8? '1.12.4' : jqver)+'/jquery.min',
|
||||
'jquery' : '//cdnjs.cloudflare.com/ajax/libs/jquery/'+(old? '1.12.4' : jqver)+'/jquery.min',
|
||||
'jquery-ui': '//cdnjs.cloudflare.com/ajax/libs/jqueryui/'+uiver+'/jquery-ui.min',
|
||||
'elfinder' : 'elfinder.min',
|
||||
'encoding-japanese': '//cdn.rawgit.com/polygonplanet/encoding.js/1.0.26/encoding.min'
|
||||
|
||||
Reference in New Issue
Block a user