improve loading performance of settings UI

This commit is contained in:
SethBurkart123
2024-03-27 23:54:53 +11:00
parent 073ba4d0d5
commit 31da7e8ded
5 changed files with 28 additions and 9 deletions
+10
View File
@@ -0,0 +1,10 @@
import Browser from "webextension-polyfill";
console.log('hi');
(async () => {
const result = await Browser.storage.local.get();
if (result.DarkMode) {
document.body.classList.add('dark');
}
})();