Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/plugin/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ npm install @remixproject/plugin-iframe

or with a unpkg :
```html
<script src="https://unpkg.com/@remixproject/plugin"></script>
<script src="https://unpkg.com/@remixproject/plugin-iframe"></script>
```

### Plugin Client
The plugin client is how you connect your plugin to remix.

To import ( the ES6 way) with NPM use:
```javascript
import { createClient } from '@remixproject/plugin'
import { createClient } from '@remixproject/plugin-iframe'
const client = createClient()
```
Or if you are using unpkg use:
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin/iframe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ client.onload(async () => {
If you need to expose an API to other plugin you need to extends the class:
```typescript
import { createClient } from '@remixproject/plugin-iframe'
import { PluginClient } from '@rexmixproject/plugin'
import { PluginClient } from '@remixproject/plugin'

class MyPlugin extends PluginClient {
methods = ['hello']
hello() {
console.log('Hello World')
}
}
const client = createClient()
const client = createClient(new MyPlugin())
client.onload(async () => {
const data = client.call('filemanager', 'readFile', 'ballot.sol')
})
Expand Down