Skip to content

Commit 2e5f079

Browse files
Merge PR mebjas#794 from upstream
2 parents 7c25866 + 58944ba commit 2e5f079

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

third_party/zxing-js.umd.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2794,7 +2794,11 @@
27942794
}
27952795
}
27962796

2797-
var __awaiter = ((globalThis || global || self || window || undefined) && (globalThis || global || self || window || undefined).__awaiter) || function (thisArg, _arguments, P, generator) {
2797+
const g = (typeof globalThis !== 'undefined') ? globalThis :
2798+
(typeof global !== 'undefined') ? global :
2799+
(typeof self !== 'undefined') ? self :
2800+
(typeof window !== 'undefined') ? window : {};
2801+
var __awaiter = (g.__awaiter) || function (thisArg, _arguments, P, generator) {
27982802
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27992803
return new (P || (P = Promise))(function (resolve, reject) {
28002804
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }

0 commit comments

Comments
 (0)