We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setPreference
Example
const profile = new FirefoxProfile(); profile.setPreference('foo', '"bar"'); profile.updatePreferences(); console.log(await readFile(profile.userPrefs, { encoding: 'utf8' }));
This leads to a file containing the following line:
user_pref("foo", ""bar"");
and FF errors out because it's invalid.
Workaround
profile.defaultPreferences['foo'] = JSON.stringify('"bar"'); profile.updatePreferences();
Potential fix
Use JSON.stringify in setPreference. That might be able to replace the custom cleaning logic altogether.
JSON.stringify
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Example
This leads to a file containing the following line:
and FF errors out because it's invalid.
Workaround
Potential fix
Use
JSON.stringify
insetPreference
. That might be able to replace the custom cleaning logic altogether.The text was updated successfully, but these errors were encountered: