From 34a9d996312782a2e3a8dc1cf1355d19ba6254a7 Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 13 Sep 2019 21:50:53 +0200 Subject: [PATCH] add more native plugin && auto set the content if native send the reqeust --- src/app/files/fileManager.js | 4 ++++ src/remixAppManager.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/files/fileManager.js b/src/app/files/fileManager.js index 8108b5bc7f..0c29d4ab08 100644 --- a/src/app/files/fileManager.js +++ b/src/app/files/fileManager.js @@ -165,6 +165,10 @@ class FileManager extends Plugin { toaster.hide() } if (this.currentRequest) { + if (this.currentRequest.fromNative) { + this._setFileInternal(path, content) + return + } let actions = (toaster) => { return yo`
diff --git a/src/remixAppManager.js b/src/remixAppManager.js index 2b71d14205..312e6a41c1 100644 --- a/src/remixAppManager.js +++ b/src/remixAppManager.js @@ -11,7 +11,7 @@ const requiredModules = [ // services + layout views + system views const settings = { permissionHandler: new PermissionHandler(), autoActivate: false, - natives: ['vyper'] // Force iframe plugin to be seen as native + natives: ['vyper', 'workshops', 'ethdoc', 'etherscan'] // Force iframe plugin to be seen as native } export class RemixAppManager extends PluginEngine {