Skip to content

Commit e8164fc

Browse files
authored
Merge pull request #24 from thingraph/feature/update
Update libredwg-web version
2 parents cf54f44 + 9421803 commit e8164fc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

dwg_json_viewer.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ <h1>Dwg/dxf Database JSON Viewer</h1>
105105
})();
106106
</script>
107107
<script type="module">
108-
import { DxfParser, VERSION } from "@x-viewer/core";
108+
import { DxfParser, VERSION, LIBREDWG_WEB_VERSION } from "@x-viewer/core";
109109

110+
// Display libredwg-web version
110111
const libredwgVersionElement = document.getElementById('libredwgVersion');
111-
if (libredwgVersionElement) {
112-
// TODO: get libredwg-web version dynamically
113-
libredwgVersionElement.textContent = `(v0.5.0)`;
112+
if (libredwgVersionElement && LIBREDWG_WEB_VERSION) {
113+
libredwgVersionElement.textContent = `(v${LIBREDWG_WEB_VERSION})`;
114114
}
115115

116116
// Display x-viewer/core version

0 commit comments

Comments
 (0)