Skip to content

Web code duplication #2156

@emilk

Description

@emilk

Our HTML and JavaScript code for setting up the web-viewer is currently duplicated across four files:

❯ rg wasm_bindgen.WebHandle
scripts/demo_assets/static/index.js
41:  let handle = new wasm_bindgen.WebHandle();

web_viewer/index_bundled.html
186:            let handle = new wasm_bindgen.WebHandle();

web_viewer/index.html
189:            let handle = new wasm_bindgen.WebHandle();

this makes it tedious and error prone to work to update. It's not a lot of code though, so perhaps it's fine for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🕸️ webregarding running the viewer in a browser🧑‍💻 dev experiencedeveloper experience (excluding CI)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions