1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Introduce even more modern JavaScript features in the code-base

After PR 12563 we're now free to use e.g. logical OR assignment, nullish coalescing, and optional chaining in the entire code-base.
This commit is contained in:
Jonas Jenwald 2023-05-18 18:52:54 +02:00
parent a24d5b629e
commit e8030752f3
10 changed files with 25 additions and 31 deletions

View file

@ -373,7 +373,7 @@ class ChromePreferences extends BasePreferences {
);
chrome.storage.managed.get(defaultManagedPrefs, function (items) {
items = items || defaultManagedPrefs;
items ||= defaultManagedPrefs;
// Migration logic for deprecated preferences: If the new preference
// is not defined by an administrator (i.e. the value is the same as
// the default value), and a deprecated preference is set with a