enable 3D render on desktop

This commit is contained in:
Baltazar Gomez 2020-04-16 14:53:56 -05:00 committed by Sean Yesmunt
parent b36428a193
commit e6fe6d6232

View file

@ -16,7 +16,7 @@ export const IMAGE = 'image';
export const CAD = 'cad'; export const CAD = 'cad';
export const COMIC = 'comic'; export const COMIC = 'comic';
export const AUTO_RENDER_MODES = [IMAGE, COMIC].concat(TEXT_MODES); // these types will render (and thus download) automatically (if free) export const AUTO_RENDER_MODES = [IMAGE, CAD, COMIC].concat(TEXT_MODES); // these types will render (and thus download) automatically (if free)
export const WEB_SHAREABLE_MODES = AUTO_RENDER_MODES.concat(FLOATING_MODES); export const WEB_SHAREABLE_MODES = AUTO_RENDER_MODES.concat(FLOATING_MODES);
export const DOWNLOAD = 'download'; export const DOWNLOAD = 'download';
@ -25,7 +25,7 @@ export const UNSUPPORTED = 'unsupported';
// PDFs disabled on desktop until we update Electron: https://github.com/electron/electron/issues/12337 // PDFs disabled on desktop until we update Electron: https://github.com/electron/electron/issues/12337
// Comics disabled because nothing is actually reporting as a comic type // Comics disabled because nothing is actually reporting as a comic type
export const UNSUPPORTED_IN_THIS_APP = IS_WEB ? [CAD, COMIC, APPLICATION] : [CAD, APPLICATION, PDF]; export const UNSUPPORTED_IN_THIS_APP = IS_WEB ? [CAD, COMIC, APPLICATION] : [ APPLICATION, PDF];
export const UNRENDERABLE_MODES = Array.from( export const UNRENDERABLE_MODES = Array.from(
new Set(UNSUPPORTED_IN_THIS_APP.concat([DOWNLOAD, APPLICATION, UNSUPPORTED])) new Set(UNSUPPORTED_IN_THIS_APP.concat([DOWNLOAD, APPLICATION, UNSUPPORTED]))