Skip to content

Commit 680dd16

Browse files
committed
remove "att_bin_" - cables-gl/cables/issues/8183
1 parent c00f803 commit 680dd16

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

shared/api/utils/shared_ops_util.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -470,14 +470,7 @@ export default class SharedOpsUtil extends SharedUtil
470470
{
471471
codeAttachmentsInc += fs.readFileSync(path.dirname(fn) + "/" + dir[i], "utf8");
472472
}
473-
if (dir[i].startsWith("att_bin_"))
474-
{
475-
let varName = dir[i].substr(4, dir[i].length - 4);
476-
varName = varName.replace(/\./g, "_");
477-
codeAttachments += "\"" + varName + "\":\"" + Buffer.from(fs.readFileSync(path.dirname(fn) + "/" + dir[i]))
478-
.toString("base64") + "\",";
479-
}
480-
else if (dir[i] === this.SUBPATCH_ATTACHMENT_PORTS)
473+
if (dir[i] === this.SUBPATCH_ATTACHMENT_PORTS)
481474
{
482475
if (prepareForExport) continue;
483476
let varName = dir[i].substr(4, dir[i].length - 4);

0 commit comments

Comments
 (0)