mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2026-03-02 03:49:24 +00:00
Avoid Content Security Policy unsafe-eval issue
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user