mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #16597 from Snuffleupagus/firefox-getPreferences-cleanup
[Firefox] Simplify `FirefoxPreferences._readFromStorage` (PR 16583 follow-up)
This commit is contained in:
commit
371ee778ff
1 changed files with 1 additions and 2 deletions
|
@ -175,8 +175,7 @@ class DownloadManager {
|
|||
|
||||
class FirefoxPreferences extends BasePreferences {
|
||||
async _readFromStorage(prefObj) {
|
||||
const prefs = await FirefoxCom.requestAsync("getPreferences", prefObj);
|
||||
return typeof prefs === "string" ? JSON.parse(prefs) : prefs;
|
||||
return FirefoxCom.requestAsync("getPreferences", prefObj);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue