From f7e5676d9ad8fc93423596e2735809ab53b759cb Mon Sep 17 00:00:00 2001 From: lianahus Date: Thu, 21 Jan 2021 15:37:10 +0100 Subject: [PATCH] added bleach to the lib --- apps/debugger/src/app/debugger-api.ts | 4 ++-- apps/remix-ide/src/app/tabs/debugger-tab.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/debugger/src/app/debugger-api.ts b/apps/debugger/src/app/debugger-api.ts index 7b76ed3381..2627c963c1 100644 --- a/apps/debugger/src/app/debugger-api.ts +++ b/apps/debugger/src/app/debugger-api.ts @@ -6,10 +6,10 @@ import type { CompilationResult } from '@remix-project/remix-solidity-ts' export const DebuggerApiMixin = (Base) => class extends Base { initDebuggerApi () { this.debugHash = null - + const self = this this.web3Provider = { - sendAsync(payload, callback) { + sendAsync (payload, callback) { self.call('web3Provider', 'sendAsync', payload) .then(result => callback(null, result)) .catch(e => callback(e)) diff --git a/apps/remix-ide/src/app/tabs/debugger-tab.js b/apps/remix-ide/src/app/tabs/debugger-tab.js index 4afd06b64a..5c9467742d 100644 --- a/apps/remix-ide/src/app/tabs/debugger-tab.js +++ b/apps/remix-ide/src/app/tabs/debugger-tab.js @@ -8,7 +8,7 @@ import ReactDOM from 'react-dom' import modalDialogCustom from '../ui/modal-dialog-custom' const yo = require('yo-yo') const css = require('./styles/debugger-tab-styles') -const bleach = require('bleach'); +import bleach from '../../lib/bleach' const profile = { name: 'debugger',