mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-24 19:59:53 -04:00
Fix #3519; restricting importScripts has always been buggy and we probably don't need it
This commit is contained in:
parent
15d762e93e
commit
d739fbef9b
1 changed files with 0 additions and 6 deletions
|
@ -84,12 +84,6 @@ var ensureLanguagesImportedFromUserCodeMap = function (userCodeMap) {
|
||||||
|
|
||||||
|
|
||||||
var restricted = ["XMLHttpRequest", "Worker"];
|
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) {
|
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
|
// We could do way more from this: http://stackoverflow.com/questions/10653809/making-webworkers-a-safe-environment
|
||||||
Object.defineProperty(self, restricted[i], {
|
Object.defineProperty(self, restricted[i], {
|
||||||
|
|
Loading…
Add table
Reference in a new issue