set title and header in settings page

This commit is contained in:
Arthur Lu 2023-08-09 00:33:51 +00:00
parent 0ec045a666
commit 6cbac6b4fc

View File

@ -1,6 +1,9 @@
import { setTitleAndHeader } from "./utils.js";
window.addEventListener("DOMContentLoaded", init);
function init () {
setTitleAndHeader();
const scheme = localStorage.getItem("sync-scheme");
if (scheme) {
document.querySelector(`#sync-${scheme}`).checked = true;