mirror of
https://github.com/aljazceru/pear-docs.git
synced 2025-12-17 06:24:24 +01:00
import pear -> global.Pear
This commit is contained in:
@@ -133,10 +133,11 @@ npm i hyperswarm hypercore-crypto b4a
|
||||
Replace `app.js` with
|
||||
|
||||
``` js
|
||||
import { teardown } from 'pear'
|
||||
/* global Pear */
|
||||
import Hyperswarm from 'hyperswarm'
|
||||
import crypto from 'hypercore-crypto'
|
||||
import b4a from 'b4a'
|
||||
const { teardown } = Pear
|
||||
|
||||
const swarm = new Hyperswarm()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user