diff --git a/lib/devtools.js b/lib/devtools.js index e244f53..5d29963 100644 --- a/lib/devtools.js +++ b/lib/devtools.js @@ -304,8 +304,8 @@ customElements.define('developer-tooling', class extends HTMLElement { this.render() }) inspectorSession.on('info', ({ filename }) => { - app.url = filename - app.title = filename.split('/').pop() + app.url = filename || 'untitled' + app.title = filename?.split('/').pop() || 'untitled' this.apps.set(sessionId, app) this.render() })