From 903b98877d1327296e167b967db4620e42a5e38f Mon Sep 17 00:00:00 2001 From: Michael Mclaughlin Date: Thu, 26 Apr 2018 17:54:17 +0100 Subject: [PATCH] Avoid Content Security Policy unsafe-eval issue --- decimal.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/decimal.js b/decimal.js index 63c7977..3a9de62 100644 --- a/decimal.js +++ b/decimal.js @@ -4814,8 +4814,7 @@ // Browser. } else { if (!globalScope) { - globalScope = typeof self != 'undefined' && self && self.self == self - ? self : Function('return this')(); + globalScope = typeof self != 'undefined' && self && self.self == self ? self : window; } noConflict = globalScope.Decimal;