Update error logs

pull/5370/head
ioedeveloper 4 years ago
parent f735b828da
commit d2e637bf75
  1. 4
      apps/remix-ide/src/app/panels/file-panel.js

@ -108,8 +108,8 @@ module.exports = class Filepanel extends ViewPlugin {
* @param { name: string, type?: string[], path?: string[], extension?: string[], pattern?: string[] }
*/
registerContextMenuItem (item, callback) {
if (!item.name || !callback) return console.error('menu name and item is mandatory')
if (!item.type && !item.path && !item.extension && !item.pattern) return console.error('invalid menu match criteria provided')
if (!item.name || !callback) return console.error('menu name and callback is mandatory')
if (!item.type && !item.path && !item.extension && !item.pattern) return console.error('invalid file matching criteria provided')
item.action = callback
this.registeredMenuItems = [...this.registeredMenuItems, item]

Loading…
Cancel
Save