Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 8b68a280 authored by Simon Chan's avatar Simon Chan
Browse files

chore: don't use `global` as variable name

parent 8223d798
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -11,9 +11,9 @@ interface GlobalExtension {
}

// `createTask` allows browser DevTools to track the call stack across async boundaries.
const global = globalThis as unknown as GlobalExtension;
const { console } = globalThis as unknown as GlobalExtension;
export const createTask: (name: string) => Task =
    global.console?.createTask?.bind(global.console) ??
    console?.createTask?.bind(console) ??
    (() => ({
        run(callback) {
            return callback();