diff --git a/src/app/components/local-plugin.js b/src/app/components/local-plugin.js index 67f6df8135..2bac1cde30 100644 --- a/src/app/components/local-plugin.js +++ b/src/app/components/local-plugin.js @@ -2,6 +2,8 @@ const yo = require('yo-yo') const modalDialog = require('../ui/modaldialog') +const unexposedEvents = ['statusChanged'] + module.exports = class LocalPlugin { /** @@ -39,10 +41,10 @@ module.exports = class LocalPlugin { hash: `local-${this.profile.name}`, location: 'swapPanel' } - if (!this.profile.name) throw new Error('Plugin should have a name') - if (!this.profile.url) throw new Error('Plugin should have an URL') + if (!profile.name) throw new Error('Plugin should have a name') + if (!profile.url) throw new Error('Plugin should have an URL') localStorage.setItem('plugins/local', JSON.stringify(profile)) - return this.profile + return profile } /** @@ -118,9 +120,12 @@ module.exports = class LocalPlugin {