Internet browser return .customization extension instead of .json

Discussão em 'Angular' iniciado por Tomasz, Março 11, 2025.

  1. Tomasz

    Tomasz Guest

    From February 2025 my Angular web application returns .customization file extension instead .json. I don't know what's happened, everything worked ok before.

    My code:

    export const saveAsJson = (text: any, filename: string) => {
    const blob = new Blob([text], { type: 'application/json' });
    const link = document.createElement('a');
    link.setAttribute('href', URL.createObjectURL(blob));
    link.setAttribute('download', filename);
    link.click();
    };


    Execution:

    saveAsJson(JSON.stringify(this.exportData(), null, 2), filename);

    Continue reading...

Compartilhe esta Página