import pear -> global.Pear

This commit is contained in:
dmc
2024-01-29 14:33:45 +01:00
parent d2cfd9762f
commit a2dbb32d51
2 changed files with 82 additions and 89 deletions

View File

@@ -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()