adding dev files to master
adding all the dev files, package, webpack etc, including build which will contain minified release
This commit is contained in:
27
src/background/index.js
Normal file
27
src/background/index.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import PersistentSyncStorage from 'src/helpers/PersistentSyncStorage';
|
||||
|
||||
import Setup from './Setup';
|
||||
|
||||
import CONFIG from 'src/config';
|
||||
|
||||
class Main {
|
||||
constructor() {
|
||||
this.init = this.init.bind(this);
|
||||
|
||||
PersistentSyncStorage.on('ready', () => {
|
||||
this.setupOptions();
|
||||
Setup.ensure().then(this.init);
|
||||
});
|
||||
}
|
||||
|
||||
init() {}
|
||||
|
||||
setupOptions() {
|
||||
// Ensure options store is setup
|
||||
if(!PersistentSyncStorage.has('options')) {
|
||||
PersistentSyncStorage.set({ options: CONFIG.defaultOptions });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const main = new Main();
|
||||
Reference in New Issue
Block a user