1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-17 23:34:50 +00:00
TiddlyWiki5/plugins/tiddlywiki/browser-sniff
lin onetwo 95e0fac655
Expose isMobile to browser info (#6675)
* feat: expose isMobile to info

* feat: allow access browser info from $tw.browser

* fix: adapt typo

* refactor: only export selected properties

 Jermolene 5 hours ago

The trouble is that the properties of bowser.browser are not under our direct control, and so subsequent updates to Bowser might overwrite important properties of our own. I'd rather explicitly import the properties that we choose to support.

* refactor: put things into `is`
2022-05-14 14:02:52 +01:00
..
files JSHint obeisance for plugins folder 2014-08-30 21:32:55 +01:00
browser.js Expose isMobile to browser info (#6675) 2022-05-14 14:02:52 +01:00
plugin.info Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
readme.tid Change http://*.tiddlywiki.com/* to https:// 2017-11-11 11:56:20 +00:00
usage.tid Revert "Add text/vnd.tiddlywiki to system tiddlers within plugins that should be wikified (c.f. #2883)" 2017-06-24 17:48:32 +01:00

title: $:/plugins/tiddlywiki/browser-sniff/readme

This plugin adds a number of `$:/info/` tiddlers containing information about the current browser.

It allows you to create content that is presented in a way that is responsive to different browsers.

For example, https://tiddlywiki.com uses this plugin to present the user with the best options for getting started depending on their browser.

[[Source code|https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/browser-sniff]]