import QuoteBackground from './quote';
import followThread from './followThread';
import startCleanTracker from './followThread/cleanTracker';

const quoteBackground = new QuoteBackground();
followThread();
startCleanTracker();

chrome.storage.sync.get('_migrated', (result) => {
  if (!result._migrated) {
    chrome.storage.local.get(null, (oldStorage) => {
      chrome.storage.sync.set({ ...oldStorage, _migrated: true }, () => {
        console.info('Migration done');
      });
      chrome.storage.local.set({ '_migrated_local': true });
    });
  }
});

export {
  quoteBackground,
};

import QuoteBackground from './quote';
import followThread from './followThread';
import startCleanTracker from './followThread/cleanTracker';

const quoteBackground = new QuoteBackground();
followThread();
startCleanTracker();

export {
  quoteBackground,
};

Revert "add migration from local to sync"
Revert "add migration from local to sync"

This reverts commit 24a1c5968f55122846ddc53973a446bfb4696180.
