diff --git a/apps/remix-ide/src/app/plugins/parser/code-parser.tsx b/apps/remix-ide/src/app/plugins/parser/code-parser.tsx index 40e2381033..c9caf3b70c 100644 --- a/apps/remix-ide/src/app/plugins/parser/code-parser.tsx +++ b/apps/remix-ide/src/app/plugins/parser/code-parser.tsx @@ -118,9 +118,7 @@ export class CodeParser extends Plugin { }) this.on('solidity', 'loadingCompiler', async (url) => { - // add timestamp to avoid caching - url = url + '?t=' + Date.now() - this.compilerService.compiler.loadVersion(true, url) + this.compilerService.compiler.loadVersion(true, `${url}?t=${Date.now()}`) }) await this.compilerService.init()