diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-08-30 18:56:02 -0400 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-08-30 19:56:02 -0300 |
commit | 60a0db7f6ad198da6ee89ebf47cb091776736b69 (patch) | |
tree | 556b05cbea59b5ab91f531d54e988f17492e0ca5 /webapp/root.jsx | |
parent | 58242905d62418c5cc4749dcac957378459eeb24 (diff) | |
download | chat-60a0db7f6ad198da6ee89ebf47cb091776736b69.tar.gz chat-60a0db7f6ad198da6ee89ebf47cb091776736b69.tar.bz2 chat-60a0db7f6ad198da6ee89ebf47cb091776736b69.zip |
Disable PDFJS worker (#3910)
Diffstat (limited to 'webapp/root.jsx')
-rw-r--r-- | webapp/root.jsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webapp/root.jsx b/webapp/root.jsx index 0fef23a53..1a085dae1 100644 --- a/webapp/root.jsx +++ b/webapp/root.jsx @@ -7,6 +7,7 @@ require('perfect-scrollbar/jquery')($); import React from 'react'; import ReactDOM from 'react-dom'; import {Router, browserHistory} from 'react-router/es6'; +import PDFJS from 'pdfjs-dist'; import * as GlobalActions from 'actions/global_actions.jsx'; import * as Websockets from 'actions/websocket_actions.jsx'; import BrowserStore from 'stores/browser_store.jsx'; @@ -21,6 +22,8 @@ import 'katex/dist/katex.min.css'; // Import the root of our routing tree import rRoot from 'routes/route_root.jsx'; +PDFJS.disableWorker = true; + // This is for anything that needs to be done for ALL react components. // This runs before we start to render anything. function preRenderSetup(callwhendone) { |