From eced8cd5462e4cd752715c890aa0399073e5464f Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 17 Sep 2024 10:06:16 +0200 Subject: [PATCH] linting --- apps/remix-ide/src/app/tabs/script-runner-ui.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/script-runner-ui.tsx b/apps/remix-ide/src/app/tabs/script-runner-ui.tsx index 2aad6be73e..61ea29c316 100644 --- a/apps/remix-ide/src/app/tabs/script-runner-ui.tsx +++ b/apps/remix-ide/src/app/tabs/script-runner-ui.tsx @@ -39,16 +39,16 @@ export class ScriptRunnerUIPlugin extends ViewPlugin { const testPluginUrl = localStorage.getItem('test-plugin-url') let baseUrl = 'http://localhost:3000' let url = `${baseUrl}?template=${name}` - if(testPluginName === 'scriptRunner'){ + if(testPluginName === 'scriptRunner') { // if testpluginurl has template specified only use that - if(testPluginUrl.indexOf('template')>-1){ - url = testPluginUrl - }else{ + if (testPluginUrl.indexOf('template')>-1) { + url = testPluginUrl + } else { baseUrl = `//${new URL(testPluginUrl).host}` url = `${baseUrl}?template=${name}×tamp=${Date.now()}` } } - + const newProfile: IframeProfile = { ...profile, name: profile.name + name, @@ -98,7 +98,6 @@ export class ScriptRunnerUIPlugin extends ViewPlugin { this.emit('info', data) } - render() { return (