File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,6 +87,9 @@ <h1>EzyCad</h1>
8787 < canvas class ="emscripten " id ="canvas " oncontextmenu ="event.preventDefault() "> </ canvas >
8888 < script type ='text/javascript '>
8989 ( function ( ) {
90+ // Bump when publishing new EzyCad.js / .wasm / .data to GitHub Pages (cache bust).
91+ var EZYCAD_WEB_CACHE = '0.1.0-20260522' ;
92+
9093 var splash = document . getElementById ( 'ezycad-splash' ) ;
9194 var statusEl = document . getElementById ( 'ezycad-splash-status' ) ;
9295
@@ -106,6 +109,11 @@ <h1>EzyCad</h1>
106109 }
107110
108111 window . Module = {
112+ locateFile : function ( path ) {
113+ if ( path . indexOf ( '.wasm' ) !== - 1 || path . indexOf ( '.data' ) !== - 1 )
114+ return path + '?v=' + EZYCAD_WEB_CACHE ;
115+ return path ;
116+ } ,
109117 preRun : [ ] ,
110118 postRun : [
111119 function ( ) {
@@ -152,6 +160,6 @@ <h1>EzyCad</h1>
152160 console . log ( "onerror: " + event ) ;
153161 } ;
154162 </ script >
155- < script type ="text/javascript " src ="EzyCad.js " charset ="utf-8 "> </ script >
163+ < script type ="text/javascript " src ="EzyCad.js?v=0.1.0-20260522 " charset ="utf-8 "> </ script >
156164 </ body >
157165</ html >
You can’t perform that action at this time.
0 commit comments