Skip to content

%sag and %sav blits no longer give you a download prompt #7

@Fang-

Description

@Fang-

The logic for them makes use of Buffer, but for whatever reason, with the glob that's on livenet right now:

Failed to call subscription event callback ReferenceError: Buffer is not defined

webterm/ui/lib/blit.ts

Lines 40 to 45 in ed7f8c5

} else if ('sag' in blit || 'sav' in blit) {
const sav = ('sag' in blit) ? blit.sag : blit.sav;
const name = sav.path.split('/').slice(-2).join('.');
const buff = Buffer.from(sav.file, 'base64');
const blob = new Blob([buff], { type: 'application/octet-stream' });
saveAs(blob, name);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions