diff --git a/guide/debugging-a-pear-terminal-app.md b/guide/debugging-a-pear-terminal-app.md index 2aff468..3b201c1 100644 --- a/guide/debugging-a-pear-terminal-app.md +++ b/guide/debugging-a-pear-terminal-app.md @@ -19,8 +19,8 @@ This code should run as the first thing in the application: ``` js if (Pear.config.dev) { const { Inspector } = await import('pear-inspect') - const inpector = await new Inspector() - const key = await inpector.enable() + const inspector = await new Inspector() + const key = await inspector.enable() console.log(`Debug with pear://runtime/devtools/${key.toString('hex')}`) } ``` diff --git a/lib/devtools.js b/lib/devtools.js index 8f43b67..77f3915 100644 --- a/lib/devtools.js +++ b/lib/devtools.js @@ -150,8 +150,8 @@ customElements.define('developer-tooling', class extends HTMLElement {
if (Pear.config.dev) {
const { Inspector } = await import('pear-inspect')
- const inpector = await new Inspector()
- const key = await inpector.enable()
+ const inspector = await new Inspector()
+ const key = await inspector.enable()
console.log('Debug with pear://runtime/devtools/'
+ key.toString('hex'))
}