diff --git a/app/assets/javascripts/run-tests.js b/app/assets/javascripts/run-tests.js index 1463c3f60..5ca5cd355 100644 --- a/app/assets/javascripts/run-tests.js +++ b/app/assets/javascripts/run-tests.js @@ -7,6 +7,7 @@ window.serverConfig = {picoCTF: false, production: false}; window.StripeCheckout = {configure: function (){}}; initialize = require('core/initialize'); initialize.init(); +application.testing = true; console.debug = function() {}; // Karma conf doesn't seem to work? Debug messages are still emitted when they shouldn't be. TestView = require('views/TestView'); TestView.runTests(); 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], { diff --git a/app/assets/main.html b/app/assets/main.html index 717b8985b..bda9da542 100644 --- a/app/assets/main.html +++ b/app/assets/main.html @@ -38,15 +38,6 @@ ga('create', 'UA-39724129-1', 'auto'); - - -