You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -215,7 +215,7 @@ Doc is TODO…
215
215
216
216
## CSS
217
217
218
-
In the file [`css/photonOptions.css`], there is a style for
218
+
In the file [`css/photonOptions.css`], there is a style for a Firefox/[Photon](https://design.firefox.com/photon/)-style appearance of the settings.
219
219
220
220
Here is the corresponding HTML, if you want to use it:
221
221
```html
@@ -257,6 +257,14 @@ Here is the corresponding HTML, if you want to use it:
257
257
258
258
```
259
259
260
+
## Automatically disabling options
261
+
262
+
To automatically disable options depending on the environment, load the `EnvironmentalOptions.js` module and run `MobileOptions.init();`. You can even do that asynchronously with the `async` attribute at the `script` tag.
263
+
264
+
If you do so, you can use two CSS classes:
265
+
* You can use the CSS class `.mobile-incompatible` to mark options that are not compatible with Android/mobile devices.
266
+
* You can use the CSS class `.firefox-only` to mark options that are only compatible with the Mozilla Firefox browser.
267
+
260
268
## API note
261
269
262
270
Everything in the `internal` dir is considered to be an internal module/file and thus not be considered to be an API under _semantic versioning_. That means the API there can change at any time, do _not_ import anything from there!
0 commit comments