Unverified Commit 325bfd33 authored by bunsenstraat's avatar bunsenstraat Committed by GitHub

Merge pull request #1213 from ethereum/targets2

targets
parents f1a4225a 3515b900
......@@ -111,6 +111,12 @@ export class RemixAppManager extends PluginManager {
try {
const res = await fetch(this.pluginsDirectory)
plugins = await res.json()
plugins = plugins.filter((plugin) => {
if (plugin.targets && Array.isArray(plugin.targets) && plugin.targets.length > 0) {
return (plugin.targets.includes('remix'))
}
return true
})
localStorage.setItem('plugins-directory', JSON.stringify(plugins))
} catch (e) {
console.log('getting plugins list from localstorage...')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment