Skip to content

Commit 17f9493

Browse files
committed
fix(demo): add missing init() call before creating Terminal
The module-level init() was added in PR #60 but demo/bin/demo.js was not updated to call it, causing: 'ghostty-web not initialized. Call init() before creating Terminal instances.'
1 parent f9fd565 commit 17f9493

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

demo/bin/demo.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,9 @@ const HTML_TEMPLATE = `<!doctype html>
193193
</div>
194194
195195
<script type="module">
196-
import { Terminal, FitAddon } from '/dist/ghostty-web.js';
196+
import { init, Terminal, FitAddon } from '/dist/ghostty-web.js';
197197
198+
await init();
198199
const term = new Terminal({
199200
cols: 80,
200201
rows: 24,

0 commit comments

Comments
 (0)