Adrià Vilanova MartÃnez | 3465e77 | 2021-07-11 19:18:41 +0200 | [diff] [blame] | 1 | import {injectScript, injectStylesheet} from '../common/contentScriptsUtils.js'; |
| 2 | import {setUpListener} from '../common/csEventListener.js'; |
| 3 | |
| 4 | setUpListener(); |
| 5 | |
| 6 | chrome.storage.sync.get(null, function(options) { |
| 7 | if (options.profileindicator || options.profileindicatoralt) { |
| 8 | injectScript( |
| 9 | chrome.runtime.getURL('profileIndicatorInject.bundle.js')); |
| 10 | injectStylesheet( |
| 11 | chrome.runtime.getURL('css/profileindicator_inject.css')); |
| 12 | } |
| 13 | }); |