Merge pull request #3601 from ethereum/docgen-patch-1

Unwanted Event Listener removal for Docgen
pull/3599/head
Joseph Izang 2 years ago committed by GitHub
commit 2a8f3a7d13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/doc-gen/src/app/App.tsx
  2. 1
      apps/doc-gen/src/app/docgen-client.ts

@ -29,7 +29,7 @@ const App = () => {
return (
<div className="p-3">
<h5 className="h-5 mb-3">Compile a solidity contract in order to build documentation as markdown or right click on a contract and click on "Generate Documentation".</h5>
<h5 className="h-5 mb-3">Compile a Solidity contract and generate its documentation as Markdown. (Right-click on a contract in the File Explorer and select "Generate Docs" from the context menu.).</h5>
{fileName && <div className="border-bottom border-top px-2 py-3 justify-center align-items-center d-flex">
<h6>File: {fileName}</h6>
</div>}

@ -89,6 +89,5 @@ export class DocGenClient extends PluginClient {
this.eventEmitter.on('compilationFinished', async (build: Build, fileName: string) => {
await this.docgen([build])
})
this.eventEmitter.removeAllListeners('compilationFinished')
}
}

Loading…
Cancel
Save