Provide Visible Error if <py-env> paths is used in a local HTML file (#311)

* Add onscreen error when using py-env paths in local HTTP files without file server

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Remove redundant code, fix error handling, add 404 error

* Lint and Format

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* manage errors loading files

* use handleFetchError for handling fetch errors in env

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Fabio Pliger <fabio.pliger@gmail.com>
This commit is contained in:
Jeff Glass
2022-05-17 23:48:02 -05:00
committed by GitHub
parent 39774a83c5
commit b767a78b05
8 changed files with 188 additions and 125 deletions

View File

@@ -47,7 +47,7 @@ function getEditorTheme(el: BaseEvalElement): string {
return initialTheme;
}
return initialTheme = el.getAttribute('theme');
return (initialTheme = el.getAttribute('theme'));
}
export class PyRepl extends BaseEvalElement {