|
|
@ -39,11 +39,11 @@ export class ScriptRunnerUIPlugin extends ViewPlugin { |
|
|
|
const testPluginUrl = localStorage.getItem('test-plugin-url') |
|
|
|
const testPluginUrl = localStorage.getItem('test-plugin-url') |
|
|
|
let baseUrl = 'http://localhost:3000' |
|
|
|
let baseUrl = 'http://localhost:3000' |
|
|
|
let url = `${baseUrl}?template=${name}` |
|
|
|
let url = `${baseUrl}?template=${name}` |
|
|
|
if(testPluginName === 'scriptRunner'){ |
|
|
|
if(testPluginName === 'scriptRunner') { |
|
|
|
// if testpluginurl has template specified only use that
|
|
|
|
// if testpluginurl has template specified only use that
|
|
|
|
if(testPluginUrl.indexOf('template')>-1){ |
|
|
|
if (testPluginUrl.indexOf('template')>-1) { |
|
|
|
url = testPluginUrl |
|
|
|
url = testPluginUrl |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
baseUrl = `//${new URL(testPluginUrl).host}` |
|
|
|
baseUrl = `//${new URL(testPluginUrl).host}` |
|
|
|
url = `${baseUrl}?template=${name}×tamp=${Date.now()}` |
|
|
|
url = `${baseUrl}?template=${name}×tamp=${Date.now()}` |
|
|
|
} |
|
|
|
} |
|
|
@ -98,7 +98,6 @@ export class ScriptRunnerUIPlugin extends ViewPlugin { |
|
|
|
this.emit('info', data) |
|
|
|
this.emit('info', data) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render() { |
|
|
|
render() { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div id="scriptRunnerTab"> |
|
|
|
<div id="scriptRunnerTab"> |
|
|
|