Skip to content

Commit 6b4da6b

Browse files
committed
bug fix iemobile 8.1
1 parent 3f9aff9 commit 6b4da6b

File tree

5 files changed

+17
-14
lines changed

5 files changed

+17
-14
lines changed

dist/FileAPI.html5.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! FileAPI 2.0.18 - BSD | git://github.com/mailru/FileAPI.git
1+
/*! FileAPI 2.0.19 - BSD | git://github.com/mailru/FileAPI.git
22
* FileAPI — a set of javascript tools for working with files. Multiupload, drag'n'drop and chunked file upload. Images: crop, resize and auto orientation by EXIF.
33
*/
44

@@ -106,6 +106,7 @@
106106
doctype = document.doctype || {},
107107
userAgent = window.navigator.userAgent,
108108
safari = /safari\//i.test(userAgent) && !/chrome\//i.test(userAgent),
109+
iemobile = /iemobile\//i.test(userAgent),
109110

110111
// https://github.com/blueimp/JavaScript-Load-Image/blob/master/load-image.js#L48
111112
apiURL = (window.createObjectURL && window) || (window.URL && URL.revokeObjectURL && URL) || (window.webkitURL && webkitURL),
@@ -120,7 +121,7 @@
120121
jQuery = window.jQuery,
121122

122123
html5 = !!(File && (FileReader && (window.Uint8Array || FormData || XMLHttpRequest.prototype.sendAsBinary)))
123-
&& !(safari && /windows/i.test(userAgent)), // BugFix: https://github.com/mailru/FileAPI/issues/25
124+
&& !(safari && /windows/i.test(userAgent) && !iemobile), // BugFix: https://github.com/mailru/FileAPI/issues/25
124125

125126
cors = html5 && ('withCredentials' in (new XMLHttpRequest)),
126127

@@ -285,7 +286,7 @@
285286
* FileAPI (core object)
286287
*/
287288
api = {
288-
version: '2.0.18',
289+
version: '2.0.19',
289290

290291
cors: false,
291292
html5: true,

dist/FileAPI.html5.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/FileAPI.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! FileAPI 2.0.18 - BSD | git://github.com/mailru/FileAPI.git
1+
/*! FileAPI 2.0.19 - BSD | git://github.com/mailru/FileAPI.git
22
* FileAPI — a set of javascript tools for working with files. Multiupload, drag'n'drop and chunked file upload. Images: crop, resize and auto orientation by EXIF.
33
*/
44

@@ -106,6 +106,7 @@
106106
doctype = document.doctype || {},
107107
userAgent = window.navigator.userAgent,
108108
safari = /safari\//i.test(userAgent) && !/chrome\//i.test(userAgent),
109+
iemobile = /iemobile\//i.test(userAgent),
109110

110111
// https://github.com/blueimp/JavaScript-Load-Image/blob/master/load-image.js#L48
111112
apiURL = (window.createObjectURL && window) || (window.URL && URL.revokeObjectURL && URL) || (window.webkitURL && webkitURL),
@@ -120,7 +121,7 @@
120121
jQuery = window.jQuery,
121122

122123
html5 = !!(File && (FileReader && (window.Uint8Array || FormData || XMLHttpRequest.prototype.sendAsBinary)))
123-
&& !(safari && /windows/i.test(userAgent)), // BugFix: https://github.com/mailru/FileAPI/issues/25
124+
&& !(safari && /windows/i.test(userAgent) && !iemobile), // BugFix: https://github.com/mailru/FileAPI/issues/25
124125

125126
cors = html5 && ('withCredentials' in (new XMLHttpRequest)),
126127

@@ -285,7 +286,7 @@
285286
* FileAPI (core object)
286287
*/
287288
api = {
288-
version: '2.0.18',
289+
version: '2.0.19',
289290

290291
cors: false,
291292
html5: true,

dist/FileAPI.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/FileAPI.core.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
doctype = document.doctype || {},
1313
userAgent = window.navigator.userAgent,
1414
safari = /safari\//i.test(userAgent) && !/chrome\//i.test(userAgent),
15+
iemobile = /iemobile\//i.test(userAgent),
1516

1617
// https://github.com/blueimp/JavaScript-Load-Image/blob/master/load-image.js#L48
1718
apiURL = (window.createObjectURL && window) || (window.URL && URL.revokeObjectURL && URL) || (window.webkitURL && webkitURL),
@@ -26,7 +27,7 @@
2627
jQuery = window.jQuery,
2728

2829
html5 = !!(File && (FileReader && (window.Uint8Array || FormData || XMLHttpRequest.prototype.sendAsBinary)))
29-
&& !(safari && /windows/i.test(userAgent)), // BugFix: https://github.com/mailru/FileAPI/issues/25
30+
&& !(safari && /windows/i.test(userAgent) && !iemobile), // BugFix: https://github.com/mailru/FileAPI/issues/25
3031

3132
cors = html5 && ('withCredentials' in (new XMLHttpRequest)),
3233

@@ -191,7 +192,7 @@
191192
* FileAPI (core object)
192193
*/
193194
api = {
194-
version: '2.0.18',
195+
version: '2.0.19',
195196

196197
cors: false,
197198
html5: true,

0 commit comments

Comments
 (0)