Close #400
This commit is contained in:
parent
425b95a1e2
commit
7b6cedd005
@ -1836,7 +1836,7 @@
|
||||
});
|
||||
ta.style.cssText = $.get('QR.size', '');
|
||||
}
|
||||
mimeTypes = $('ul.rules').firstElementChild.textContent.match(/: (.+) /)[1].toLowerCase().replace(/\w+/g, function(type) {
|
||||
mimeTypes = $('ul.rules').firstElementChild.textContent.match(/: (.+)/)[1].toLowerCase().replace(/\w+/g, function(type) {
|
||||
switch (type) {
|
||||
case 'jpg':
|
||||
return 'image/jpeg';
|
||||
|
||||
@ -1403,7 +1403,7 @@ QR =
|
||||
ta.style.cssText = $.get 'QR.size', ''
|
||||
|
||||
# Allow only this board's supported files.
|
||||
mimeTypes = $('ul.rules').firstElementChild.textContent.match(/: (.+) /)[1].toLowerCase().replace /\w+/g, (type) ->
|
||||
mimeTypes = $('ul.rules').firstElementChild.textContent.match(/: (.+)/)[1].toLowerCase().replace /\w+/g, (type) ->
|
||||
switch type
|
||||
when 'jpg'
|
||||
'image/jpeg'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user