Fix #240.
This commit is contained in:
parent
f01ae0a9db
commit
84cf869181
@ -1705,7 +1705,7 @@
|
|||||||
});
|
});
|
||||||
ta.style.cssText = $.get('qr.size', '');
|
ta.style.cssText = $.get('qr.size', '');
|
||||||
}
|
}
|
||||||
mimeTypes = $('.rules').textContent.match(/: (.+) /)[1].toLowerCase().replace(/\w+/g, function(type) {
|
mimeTypes = $('.rules').firstChild.textContent.match(/: (.+) /)[1].toLowerCase().replace(/\w+/g, function(type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'jpg':
|
case 'jpg':
|
||||||
return 'image/jpeg';
|
return 'image/jpeg';
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
master
|
master
|
||||||
- Mayhem
|
- Mayhem
|
||||||
Fix posting on Safari.
|
Fix posting on Safari.
|
||||||
|
Fix rare case where the QR would not accept images.
|
||||||
|
|
||||||
2.26.4
|
2.26.4
|
||||||
- Mayhem
|
- Mayhem
|
||||||
|
|||||||
@ -1325,7 +1325,7 @@ qr =
|
|||||||
ta.style.cssText = $.get 'qr.size', ''
|
ta.style.cssText = $.get 'qr.size', ''
|
||||||
|
|
||||||
# Allow only this board's supported files.
|
# Allow only this board's supported files.
|
||||||
mimeTypes = $('.rules').textContent.match(/: (.+) /)[1].toLowerCase().replace /\w+/g, (type) ->
|
mimeTypes = $('.rules').firstChild.textContent.match(/: (.+) /)[1].toLowerCase().replace /\w+/g, (type) ->
|
||||||
switch type
|
switch type
|
||||||
when 'jpg'
|
when 'jpg'
|
||||||
'image/jpeg'
|
'image/jpeg'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user