rustdoc(storage.js): add comment explaining use of @ts-ignore

This commit is contained in:
binarycat 2026-01-19 15:53:50 -06:00
parent ca5a25496f
commit b7ba80d2ad

View file

@ -298,6 +298,8 @@ const updateTheme = (function() {
return updateTheme;
})();
// typescript thinks we're forgetting to call window.matchMedia,
// but we're checking browser support of media queries.
// @ts-ignore
if (getSettingValue("use-system-theme") !== "false" && window.matchMedia) {
// update the preferred dark theme if the user is already using a dark theme