53 lines
1.8 KiB
HTML
53 lines
1.8 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN" suppressHydrationWarning data-browser-compat="firefox52">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<script>
|
|
(function () {
|
|
try {
|
|
var root = document.documentElement;
|
|
root.setAttribute("data-browser-compat", "firefox52");
|
|
var theme = localStorage.getItem("strategy-theme");
|
|
root.classList.remove("dark", "light");
|
|
if (theme !== "light") root.classList.add("dark");
|
|
} catch (error) {}
|
|
})();
|
|
(function () {
|
|
try {
|
|
if (typeof AbortSignal === "undefined" || typeof AbortSignal.timeout === "function") {
|
|
return;
|
|
}
|
|
AbortSignal.timeout = function (milliseconds) {
|
|
var controller = new AbortController();
|
|
var timer = setTimeout(function () {
|
|
var reason;
|
|
try {
|
|
reason = new DOMException("signal timed out", "TimeoutError");
|
|
} catch (error) {
|
|
reason = new Error("signal timed out");
|
|
reason.name = "TimeoutError";
|
|
}
|
|
try {
|
|
controller.abort(reason);
|
|
} catch (error) {
|
|
controller.abort();
|
|
}
|
|
}, milliseconds);
|
|
controller.signal.addEventListener("abort", function () {
|
|
clearTimeout(timer);
|
|
});
|
|
return controller.signal;
|
|
};
|
|
} catch (error) {}
|
|
})();
|
|
</script>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
<title>CM 助手</title>
|
|
<script src="/runtime-config.js" data-runtime-config></script>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
</body>
|
|
</html>
|