mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -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 ""`
|
* `setpref extensions.webextensions.restricterDomains ""`
|
||||||
*/
|
*/
|
||||||
//#background
|
//#background
|
||||||
export async function setpref(key: string, value: string) {
|
export async function setpref(key: string, ...value: string[]) {
|
||||||
await Native.writePref(key, value)
|
await Native.writePref(key, value.join(" "))
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue