mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2024-10-27 20:34:12 +00:00
Avoid Content Security Policy unsafe-eval issue
This commit is contained in:
parent
2e75623cc3
commit
903b98877d
@ -4814,8 +4814,7 @@
|
|||||||
// Browser.
|
// Browser.
|
||||||
} else {
|
} else {
|
||||||
if (!globalScope) {
|
if (!globalScope) {
|
||||||
globalScope = typeof self != 'undefined' && self && self.self == self
|
globalScope = typeof self != 'undefined' && self && self.self == self ? self : window;
|
||||||
? self : Function('return this')();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
noConflict = globalScope.Decimal;
|
noConflict = globalScope.Decimal;
|
||||||
|
Loading…
Reference in New Issue
Block a user