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