Adrià Vilanova Martínez | a2f7951 | 2022-07-10 15:32:32 +0200 | [diff] [blame] | 1 | import {injectStylesheet} from '../common/contentScriptsUtils.js'; |
Adrià Vilanova Martínez | b523be9 | 2024-05-25 19:14:19 +0200 | [diff] [blame] | 2 | import {getOptions} from '../common/options/optionsUtils.js'; |
Adrià Vilanova Martínez | 4677317 | 2024-01-10 21:44:22 +0100 | [diff] [blame] | 3 | import {setUpRedirectIfEnabled} from '../redirect/setup.js'; |
Adrià Vilanova Martínez | a2f7951 | 2022-07-10 15:32:32 +0200 | [diff] [blame] | 4 | |
Adrià Vilanova Martínez | 4677317 | 2024-01-10 21:44:22 +0100 | [diff] [blame] | 5 | getOptions(['uispacing', 'redirect']).then(options => { |
| 6 | if (options.uispacing) { |
| 7 | injectStylesheet(chrome.runtime.getURL('css/ui_spacing/shared.css')); |
| 8 | injectStylesheet(chrome.runtime.getURL('css/ui_spacing/twbasic.css')); |
| 9 | } |
Adrià Vilanova Martínez | a2f7951 | 2022-07-10 15:32:32 +0200 | [diff] [blame] | 10 | |
Adrià Vilanova Martínez | 4677317 | 2024-01-10 21:44:22 +0100 | [diff] [blame] | 11 | setUpRedirectIfEnabled(options); |
Adrià Vilanova Martínez | a2f7951 | 2022-07-10 15:32:32 +0200 | [diff] [blame] | 12 | }); |