1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-24 19:24:50 +00:00

Add $:/info/browser/language to the info mechanism

This commit is contained in:
Jermolene
2019-03-07 18:42:49 +00:00
parent 6de13e2f60
commit c036c22826
2 changed files with 4 additions and 1 deletions

View File

@@ -35,6 +35,8 @@ exports.getInfoTiddlerFields = function() {
// Screen size
infoTiddlerFields.push({title: "$:/info/browser/screen/width", text: window.screen.width.toString()});
infoTiddlerFields.push({title: "$:/info/browser/screen/height", text: window.screen.height.toString()});
// Language
infoTiddlerFields.push({title: "$:/info/browser/language", text: navigator.language || ""});
}
return infoTiddlerFields;
};