Fix #240.
This commit is contained in:
parent
f01ae0a9db
commit
84cf869181
@ -1705,7 +1705,7 @@
|
||||
});
|
||||
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) {
|
||||
case 'jpg':
|
||||
return 'image/jpeg';
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
master
|
||||
- Mayhem
|
||||
Fix posting on Safari.
|
||||
Fix rare case where the QR would not accept images.
|
||||
|
||||
2.26.4
|
||||
- Mayhem
|
||||
|
||||
@ -1325,7 +1325,7 @@ qr =
|
||||
ta.style.cssText = $.get 'qr.size', ''
|
||||
|
||||
# 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
|
||||
when 'jpg'
|
||||
'image/jpeg'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user