rustdoc(storage.js): add comment explaining use of @ts-ignore
This commit is contained in:
parent
ca5a25496f
commit
b7ba80d2ad
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue