diff --git a/app/assets/javascripts/workers/worker_world.js b/app/assets/javascripts/workers/worker_world.js index 4d6b8c56b..26217cb16 100644 --- a/app/assets/javascripts/workers/worker_world.js +++ b/app/assets/javascripts/workers/worker_world.js @@ -84,12 +84,6 @@ var ensureLanguagesImportedFromUserCodeMap = function (userCodeMap) { var restricted = ["XMLHttpRequest", "Worker"]; -if (!self.navigator || !(self.navigator.userAgent.indexOf('MSIE') > 0) && - !self.navigator.userAgent.match(/Trident.*rv\:11\./) && - !self.navigator.userAgent.match(/Edge/)) { - // Can't restrict 'importScripts' in IE11, skip for all IE versions - restricted.push("importScripts"); -} for(var i = 0; i < restricted.length; ++i) { // We could do way more from this: http://stackoverflow.com/questions/10653809/making-webworkers-a-safe-environment Object.defineProperty(self, restricted[i], {