Mercurial > hg > orthanc-stone
comparison Platforms/Wasm/stone-framework-loader.ts @ 237:b4642964c355 am
SimpleViewer demo running both with SDL and Wasm
author | am@osimis.io |
---|---|
date | Wed, 20 Jun 2018 09:03:48 +0200 |
parents | f73d722d98c8 |
children | 126c9c0c9333 |
comparison
equal
deleted
inserted
replaced
236:f73d722d98c8 | 237:b4642964c355 |
---|---|
80 }; | 80 }; |
81 | 81 |
82 // Dynamic loading of the JavaScript wrapper around WebAssembly | 82 // Dynamic loading of the JavaScript wrapper around WebAssembly |
83 var script = document.createElement('script'); | 83 var script = document.createElement('script'); |
84 script.type = 'application/javascript'; | 84 script.type = 'application/javascript'; |
85 script.src = "orthanc-stone.js"; // ASSETS_FOLDER + '/' + WASM_FILENAME + '.js'; | 85 //script.src = "orthanc-stone.js"; // ASSETS_FOLDER + '/' + WASM_FILENAME + '.js'; |
86 script.src = "OrthancStoneSimpleViewer.js"; // ASSETS_FOLDER + '/' + WASM_FILENAME + '.js'; | |
86 script.async = true; | 87 script.async = true; |
87 document.head.appendChild(script); | 88 document.head.appendChild(script); |
88 } | 89 } |
89 } | 90 } |
90 } | 91 } |