mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
excmds.ts: Fix setpref breaking user.js when value contains spaces
Before this commit, `:setpref my_pref "my value"` broke user.js by only writing '"my' to the file. This created a syntax error and prevented firefox from reading the rest of the file. This commit fixes that.
This commit is contained in:
parent
8644e06f21
commit
26169efea1
1 changed files with 2 additions and 2 deletions
|
@ -805,8 +805,8 @@ export async function colourscheme(themename: string) {
|
|||
* `setpref extensions.webextensions.restricterDomains ""`
|
||||
*/
|
||||
//#background
|
||||
export async function setpref(key: string, value: string) {
|
||||
await Native.writePref(key, value)
|
||||
export async function setpref(key: string, ...value: string[]) {
|
||||
await Native.writePref(key, value.join(" "))
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue