main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
370 bytes
|
Line | |
---|
1 | /* eslint-disable no-undef, no-restricted-globals */
|
---|
2 |
|
---|
3 | const globalObject = (() => {
|
---|
4 | // new standardized access to the global object
|
---|
5 | if (typeof globalThis !== 'undefined') {
|
---|
6 | return globalThis;
|
---|
7 | }
|
---|
8 |
|
---|
9 | // WebWorker specific access
|
---|
10 | if (typeof self !== 'undefined') {
|
---|
11 | return self;
|
---|
12 | }
|
---|
13 | return window;
|
---|
14 | })();
|
---|
15 | const {
|
---|
16 | btoa
|
---|
17 | } = globalObject;
|
---|
18 | export default btoa; |
---|
Note:
See
TracBrowser
for help on using the repository browser.