experiments in a post-browser web
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(cmd): url command returns error instead of opening editor when no URL provided

+1 -2
+1 -2
extensions/cmd/commands/url.js
··· 12 12 description: 'Save a URL', 13 13 async execute(ctx) { 14 14 if (!ctx.search) { 15 - api.publish('editor:add', { type: 'url' }, api.scopes.GLOBAL); 16 - return { success: true, message: 'Opening editor' }; 15 + return { success: false, message: 'URL required' }; 17 16 } 18 17 19 18 const input = ctx.search.trim();