set title and header in settings page

This commit is contained in:
Arthur Lu 2023-08-09 00:33:51 +00:00
parent fabc934be6
commit 9f68da61cb

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;