sorry, I meant only reject part (too many then's):
```
var initializedPromise = Promise.all([
Preferences.get('enableWebGL').then(function resolved(value) {
        PDFJS.disableWebGL = !value;
      }),
     Preferences.get('sidebarViewOnLoad').then(function resolved(value) {
        self.preferenceSidebarViewOnLoad = value;
    }),
   ....
]), function (reason) {});
```