From ad5cb126a762d31a40ae821cab998a56ba881e5e Mon Sep 17 00:00:00 2001 From: filip mertens Date: Fri, 21 May 2021 14:46:19 +0200 Subject: [PATCH] targets --- apps/remix-ide/src/remixAppManager.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/remix-ide/src/remixAppManager.js b/apps/remix-ide/src/remixAppManager.js index 7e7f9cd10f..a483143ba3 100644 --- a/apps/remix-ide/src/remixAppManager.js +++ b/apps/remix-ide/src/remixAppManager.js @@ -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...')