File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/librustdoc/html/static/js Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5252,7 +5252,7 @@ if (typeof window !== "undefined") {
5252
5252
} ,
5253
5253
loadTreeByHash : hashHex => {
5254
5254
const script = document . createElement ( "script" ) ;
5255
- script . src = `${ ROOT_PATH } / search.index/${ hashHex } .js` ;
5255
+ script . src = `${ ROOT_PATH } search.index/${ hashHex } .js` ;
5256
5256
script . onerror = e => {
5257
5257
if ( databaseCallbacks ) {
5258
5258
databaseCallbacks . err_rn_ ( hashHex , e ) ;
@@ -5262,7 +5262,8 @@ if (typeof window !== "undefined") {
5262
5262
} ,
5263
5263
loadDataByNameAndHash : ( name , hashHex ) => {
5264
5264
const script = document . createElement ( "script" ) ;
5265
- script . src = `${ ROOT_PATH } /search.index/${ name } /${ hashHex } .js` ;
5265
+ const sep = ROOT_PATH . endsWith ( '/' ) ? '' : '/' ;
5266
+ script . src = `${ ROOT_PATH } search.index/${ name } /${ hashHex } .js` ;
5266
5267
script . onerror = e => {
5267
5268
if ( databaseCallbacks ) {
5268
5269
databaseCallbacks . err_rd_ ( hashHex , e ) ;
You can’t perform that action at this time.
0 commit comments