diff --git a/src/app.js b/src/app.js index 1031227f92..4eec5ccf0c 100644 --- a/src/app.js +++ b/src/app.js @@ -313,9 +313,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org registry.put({api: self._components.compilersArtefacts, name: 'compilersartefacts'}) // ----------------- UniversalDApp ----------------- - var udapp = new UniversalDApp({ - removable_instances: true - }) + var udapp = new UniversalDApp({}) registry.put({api: udapp, name: 'udapp'}) var udappUI = new UniversalDAppUI(udapp) diff --git a/src/universal-dapp-ui.js b/src/universal-dapp-ui.js index a900ff2cd9..92096ce2bb 100644 --- a/src/universal-dapp-ui.js +++ b/src/universal-dapp-ui.js @@ -38,10 +38,8 @@ UniversalDAppUI.prototype.renderInstanceFromABI = function (contractABI, address ${copyToClipboard(() => address)} ` - if (self.udapp.removable_instances) { - var close = yo`
` - title.appendChild(close) - } + var close = yo`
` + title.appendChild(close) function remove () { instance.remove() diff --git a/src/universal-dapp.js b/src/universal-dapp.js index 8c4a3653df..e21bfa1bbd 100644 --- a/src/universal-dapp.js +++ b/src/universal-dapp.js @@ -27,7 +27,6 @@ function UniversalDApp (opts, localRegistry) { self.data = {} self._components = {} self._components.registry = localRegistry || globalRegistry - self.removable_instances = opts.removable_instances self._deps = { config: self._components.registry.get('config').api, compilersartefacts: self._components.registry.get('compilersartefacts').api,