mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Revert parsed>parsed.tyoe
This commit is contained in:
parent
d5cc946f13
commit
a3cd4526d6
@ -141,7 +141,7 @@ define([
|
||||
if (cancelled) { return; }
|
||||
if (err) { return; }
|
||||
if (!val) { return; }
|
||||
transform(ctx, parsed, val, function (res) {
|
||||
transform(ctx, parsed.type, val, function (res) {
|
||||
if (cancelled) { return; }
|
||||
if (!res.data) { return; }
|
||||
var dl = function () {
|
||||
@ -237,7 +237,7 @@ define([
|
||||
var opts = {
|
||||
binary: true,
|
||||
};
|
||||
transform(ctx, parsed, val, function (res) {
|
||||
transform(ctx, parsed.type, val, function (res) {
|
||||
if (ctx.stop) { return; }
|
||||
if (!res.data) { return void error('EEMPTY'); }
|
||||
var fileName = getUnique(sanitize(rawName), res.ext, existingNames);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user