Skip to content

Commit

Permalink
add random
Browse files Browse the repository at this point in the history
  • Loading branch information
bunsenstraat committed Sep 11, 2024
1 parent 3d5793b commit c7f6932
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/remix-ide/src/app/tabs/script-runner-ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class ScriptRunnerUIPlugin extends ViewPlugin {
url = testPluginUrl
}else{
baseUrl = `//${new URL(testPluginUrl).host}`
url = `${baseUrl}?template=${name}`
url = `${baseUrl}?template=${name}&timestamp=${Date.now()}`
}
}

Expand Down
2 changes: 1 addition & 1 deletion libs/remix-ui/scriptrunner/src/lib/script-runner-ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const ScriptRunnerUI = (props: ScriptRunnerUIProps) => {
// Fetch the JSON data from the localhost server using Axios
const fetchData = async () => {
try {
const response = await axios.get('http://localhost:3000/projects.json');
const response = await axios.get('http://localhost:3000/projects.json?timestamp=' + Date.now());
setConfigurations(response.data);
} catch (error) {
console.error("Error fetching the projects data:", error);
Expand Down

0 comments on commit c7f6932

Please sign in to comment.