Permalink
Browse files

Changed.

Moved theme updating to external js like Tracker and Finder.
  • Loading branch information...
Kadauchi committed May 26, 2018
1 parent ba52276 commit c7e2d57e094b5fe1a2027d0bb933aebd8c6d12a7
Showing with 0 additions and 14 deletions.
  1. +0 −14 hit_catcher/hit_catcher.js
View
@@ -1,17 +1,3 @@
(function updateTheme() {
const theme = document.getElementById(`theme`);
chrome.storage.local.get([`themes`], (keys) => {
theme.href = `/bootstrap/css/${keys.themes.mts}.min.css`;
chrome.storage.onChanged.addListener((changes) => {
if (changes.themes) {
theme.href = `/bootstrap/css/${changes.themes.newValue.mts}.min.css`;
}
});
});
})();
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
const hitCatcher = request.hitCatcher;

0 comments on commit c7e2d57

Please sign in to comment.