dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: Replace jscs+jshint with eslint
[lhc/web/wiklou.git]
/
resources
/
src
/
mediawiki
/
mediawiki.ForeignStructuredUpload.BookletLayout.js
diff --git
a/resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.js
b/resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.js
index
844d74c
..
2712ddb
100644
(file)
--- a/
resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.js
+++ b/
resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.js
@@
-1,4
+1,4
@@
-/*
global moment
*/
+/*
global moment, Uint8Array
*/
( function ( $, mw ) {
/**
( function ( $, mw ) {
/**
@@
-381,6
+381,7
@@
if ( file && file.type === 'image/jpeg' ) {
fileReader = new FileReader();
fileReader.onload = function () {
if ( file && file.type === 'image/jpeg' ) {
fileReader = new FileReader();
fileReader.onload = function () {
+ // TODO: fileStr is never used.
var fileStr, arr, i, metadata;
if ( typeof fileReader.result === 'string' ) {
var fileStr, arr, i, metadata;
if ( typeof fileReader.result === 'string' ) {
@@
-395,7
+396,7
@@
}
try {
}
try {
- metadata = mw.libs.jpegmeta(
this.result
, file.name );
+ metadata = mw.libs.jpegmeta(
fileStr
, file.name );
} catch ( e ) {
metadata = null;
}
} catch ( e ) {
metadata = null;
}