@ungap/global-this
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -5,5 +5,5 @@ (function (Object) { | ||
configurable: true, | ||
get: function (window) { | ||
window = this.window || this; | ||
window.globalThis = window; | ||
get: function (self) { | ||
self = this.self || this; | ||
self.globalThis = self; | ||
delete Object.prototype._T_; | ||
@@ -10,0 +10,0 @@ } |
@@ -5,5 +5,5 @@ (function (Object) { | ||
configurable: true, | ||
get: function (window) { | ||
window = this.window || this; | ||
window.globalThis = window; | ||
get: function (self) { | ||
self = this.self || this; | ||
self.globalThis = self; | ||
delete Object.prototype._T_; | ||
@@ -10,0 +10,0 @@ } |
@@ -5,5 +5,5 @@ (function (Object) { | ||
configurable: true, | ||
get: function (window) { | ||
window = this.window || this; | ||
window.globalThis = window; | ||
get: function (self) { | ||
self = this.self || this; | ||
self.globalThis = self; | ||
delete Object.prototype._T_; | ||
@@ -10,0 +10,0 @@ } |
@@ -1,1 +0,1 @@ | ||
!function(t){"undefined"==typeof globalThis&&(t.defineProperty(t.prototype,"_T_",{configurable:!0,get:function(e){(e=this.window||this).globalThis=e,delete t.prototype._T_}}),_T_)}(Object); | ||
!function(t){"undefined"==typeof globalThis&&(t.defineProperty(t.prototype,"_T_",{configurable:!0,get:function(e){(e=this.self||this).globalThis=e,delete t.prototype._T_}}),_T_)}(Object); |
{ | ||
"name": "@ungap/global-this", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A cross engine globalThis.", | ||
@@ -5,0 +5,0 @@ "main": "cjs/index.js", |
@@ -8,1 +8,9 @@ # globalThis | ||
* JS as `<script src="//unpkg.com/@ungap/global-this"></script>` | ||
Compatible with IE9 and above, plus all other engines/browsers. | ||
For IE8 support, simply put the following on top of your page: | ||
```html | ||
<!--[if IE 8]><script>this.globalThis=this</script><![endif]--> | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2250
16