Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty index.html if default serializer options are changed #2621

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 15, 2023

  1. This may fix domaindrivendev#2616

    `Index.html` is generated incorrectly if `System.Text.Json`'s default serializer options are changed, e.g. if `WriteIndented` is `true` and `DefaultIgnoreCondition` is `JsonIgnoreCondition.Never`, it produces the following text inside `index.html`:
    
    ```
                var interceptors = JSON.parse('{
      "requestInterceptorFunction": null,
      "responseInterceptorFunction": null
    }');
    ```
    
    ... which will generate `index.html:100 Uncaught SyntaxError: Invalid or unexpected token` error and show blank document in the browser.
    hell-racer committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    f470e17 View commit details
    Browse the repository at this point in the history