Skip to content

Commit 0eb6284

Browse files
yann300Aniket-Engg
authored andcommitted
fix loading remote compiler
1 parent 785463c commit 0eb6284

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/remix-solidity/src/compiler/compiler-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ export function urlFromVersion (version) {
1616
let location: string | Location = window.document.location
1717
let path = location.pathname
1818
if (!path.startsWith('/')) path = '/' + path
19-
location = `${location.protocol}//${location.host}${path}assets/js`
19+
location = `${location.protocol}//${location.host}${path}`
2020
if (location.endsWith('index.html')) location = location.substring(0, location.length - 10)
2121
if (!location.endsWith('/')) location += '/'
22-
url = `${location}soljson.js`
22+
url = `${location}assets/js/soljson.js`
2323
} else {
2424
version = version.replace('.Emscripten.clang', '')
2525
if (!version.startsWith('soljson-v')) version = 'soljson-v' + version

0 commit comments

Comments
 (0)