[piexwasm] Use globalThis instead of assuming it is |window|
The global object could be window, self or global, depending on the JS environment piex-wasm runs in (Web Page, Web Worker, NodeJS, etc). The |globalThis| object points to the global object in all cases. No change in behavior (for files app), no new tests. Bug: 1132695 Change-Id: I8c6f3d21de29bce63f88352fbe89364d8a76c6bc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2434077Reviewed-by:Trent Apted <tapted@chromium.org> Commit-Queue: Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#811160}
Showing
Please register or sign in to comment