Skip to content

Commit

Permalink
Simplify Connector module
Browse files Browse the repository at this point in the history
  • Loading branch information
alexesprit committed Nov 5, 2017
1 parent bacc3ec commit 64eaed9
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions core/content/connector.js
Expand Up @@ -10,8 +10,7 @@
*
* @constructor
*/
var BaseConnector = window.BaseConnector || function() {

function BaseConnector() {
/**
* Selector of an element containing artist name. The containing string will
* be filtered in the background script, if needed.
Expand Down Expand Up @@ -574,18 +573,10 @@ var BaseConnector = window.BaseConnector || function() {

isStateReset = true;
};
};

window.BaseConnector = BaseConnector;
}

/**
* Create object to be overridden in specific connector implementation
* @type {Object}
*/
let Connector;
if (window.Connector) {
Connector = window.Connector;
} else {
Connector = new BaseConnector();
window.Connector = Connector;
}
window.Connector = new BaseConnector();

0 comments on commit 64eaed9

Please sign in to comment.