Simplify.
This commit is contained in:
parent
e5332ccb49
commit
773689306a
@ -385,8 +385,7 @@ QR =
|
||||
if file
|
||||
{type} = file
|
||||
blob = new Blob [file], {type}
|
||||
pastedname = Conf['pastedname']
|
||||
blob.name = "#{pastedname}.#{QR.extensionFromType[type] or 'jpg'}"
|
||||
blob.name = "#{Conf['pastedname']}.#{QR.extensionFromType[type] or 'jpg'}"
|
||||
QR.open()
|
||||
QR.handleFiles [blob]
|
||||
$.addClass QR.nodes.el, 'dump'
|
||||
@ -405,8 +404,7 @@ QR =
|
||||
for i in [0...bstr.length]
|
||||
arr[i] = bstr.charCodeAt(i)
|
||||
blob = new Blob [arr], {type: m[1]}
|
||||
pastedname = Conf['pastedname']
|
||||
blob.name = "#{pastedname}.#{m[2]}"
|
||||
blob.name = "#{Conf['pastedname']}.#{m[2]}"
|
||||
QR.handleFiles [blob]
|
||||
else if /^https?:\/\//.test src
|
||||
QR.handleUrl src
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user