From 60a0db7f6ad198da6ee89ebf47cb091776736b69 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Tue, 30 Aug 2016 18:56:02 -0400
Subject: Disable PDFJS worker (#3910)

---
 webapp/root.jsx | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'webapp/root.jsx')

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) {
-- 
cgit v1.2.3-1-g7c22

