mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-29 21:09:56 +00:00
Fixes suggested by @pmario
This commit is contained in:
parent
ba17e342b2
commit
7f9b8bf0c1
@ -35,7 +35,7 @@ exports.getInfoTiddlerFields = function(updateInfoTiddlersCallback) {
|
||||
return tiddlers;
|
||||
};
|
||||
infoTiddlerFields.push.apply(infoTiddlerFields,getResultTiddlers());
|
||||
mqList.addListener(function(event) {
|
||||
mqList.addEventListener("change",function(event) {
|
||||
updateInfoTiddlersCallback(getResultTiddlers());
|
||||
});
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
title: $:/core/wiki/config/MediaQueryTrackers/DarkLightSwitch
|
||||
title: $:/core/wiki/config/MediaQueryTrackers/DarkLightPreferred
|
||||
tags: $:/tags/MediaQueryTracker
|
||||
media-query: (prefers-color-scheme: dark)
|
||||
info-tiddler: $:/info/browser/darkmode
|
@ -19,7 +19,7 @@ System tiddlers in the namespace `$:/info/` are used to expose information about
|
||||
|[[$:/info/browser/language]] |<<.from-version "5.1.20">> Language as reported by browser (note that some browsers report two character codes such as `en` while others report full codes such as `en-GB`) |
|
||||
|[[$:/info/browser/screen/width]] |Screen width in pixels |
|
||||
|[[$:/info/browser/screen/height]] |Screen height in pixels |
|
||||
|[[$:/info/browser/darkmode]] |<<.from-version "5.3.6">> Is dark mode enabled? ("yes" or "no") |
|
||||
|[[$:/info/browser/darkmode]] |<<.from-version "5.3.6">> Is dark mode preferred? ("yes" or "no") |
|
||||
|[[$:/info/darkmode]] |<<.deprecated-since "5.3.6">> Alias for $:/info/browser/darkmode |
|
||||
|[[$:/info/node]] |Running under [[Node.js]]? ("yes" or "no") |
|
||||
|[[$:/info/url/full]] |<<.from-version "5.1.14">> Full URL of wiki (eg, ''<<example full>>'') |
|
||||
|
Loading…
Reference in New Issue
Block a user