Skip to content

Commit

Permalink
Update link and example of usage of Preferences (#46)
Browse files Browse the repository at this point in the history
The Preference API has changed and this reflect the new API.
  • Loading branch information
mrobinson authored Jan 16, 2025
1 parent cbd58d0 commit ee37e9e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/running-servoshell.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ Use `--help` to list the available command line options:
$ ./servo --help
```

Use `--pref` to [configure Servo’s behaviour](https://github.com/servo/servo/blob/main/resources/prefs.json), including to enable experimental web platform features.
Use `--pref` to configure Servo’s behaviour including to enable experimental web platform features.
You can find the list of [preferences] in the Servo API documentation.
For example, to run our [Conway’s Game of Life demo](https://demo.servo.org/experiments/webgpu-game-of-life/) with WebGPU enabled:

[preferences]: https://doc.servo.org/servo_config/prefs/struct.Preferences.html

```sh
$ ./servo --pref dom.webgpu.enabled https://demo.servo.org/experiments/webgpu-game-of-life/
$ ./servo --pref dom_webgpu_enabled https://demo.servo.org/experiments/webgpu-game-of-life/
```

Use `--devtools=6080` to enable support for [debugging pages with Firefox devtools](hacking/using-devtools.md):
Expand Down

0 comments on commit ee37e9e

Please sign in to comment.