Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check file extension is
.html
before injecting HTML scripts (#5944)
## Summary - follow-up to #5766 - part of addressing #4276 Thank you @testlabauto for noticing the test failures in main! Plots were failing to display for the highcharter and plotly R examples, and errors would be seen in the dev tools console: ![image](https://github.com/user-attachments/assets/266c121b-4593-4795-996d-700e1e1ad417) @:plots ### Implementation - check that the file is an HTML file before injecting the HTML scripts - the `Uncaught SyntaxError: Unexpected token '<'` error was occurring because we were injecting HTML into javascript files (oops!) ### Release Notes #### New Features - N/A #### Bug Fixes - N/A ### QA Notes The [highcharter](https://github.com/posit-dev/qa-example-content/blob/main/workspaces/r-plots/highcharter-example.r) and [plotly](https://github.com/posit-dev/qa-example-content/blob/main/workspaces/r-plots/plotly-example.r) R examples should work in Positron Server Web.
- Loading branch information