feat(sdk,client): target es2015 for old chromecast compatibility
All checks were successful
arcad/edge/pipeline/head This commit looks good
All checks were successful
arcad/edge/pipeline/head This commit looks good
This commit is contained in:
parent
d0b57ab15f
commit
9e3fc427bb
2
Makefile
2
Makefile
@ -50,7 +50,7 @@ pkg/sdk/client/dist/client.js: tools/esbuild/bin/esbuild node_modules
|
||||
pkg/sdk/client/src/index.ts \
|
||||
--bundle \
|
||||
--sourcemap \
|
||||
--target=es2020 \
|
||||
--target=es2015 \
|
||||
--format=iife \
|
||||
--global-name=Edge \
|
||||
--define:global=window \
|
||||
|
3
pkg/sdk/client/dist/client.js
vendored
3
pkg/sdk/client/dist/client.js
vendored
@ -3960,6 +3960,7 @@ var Edge = (() => {
|
||||
reject(new Error("Edge auth token request timed out !"));
|
||||
}, timeout);
|
||||
const listener = (evt) => {
|
||||
var _a;
|
||||
const message2 = evt.data;
|
||||
if (!message2 || !message2.type || !message2.data) {
|
||||
return;
|
||||
@ -3975,7 +3976,7 @@ var Edge = (() => {
|
||||
reject("Unexpected auth token request response !");
|
||||
return;
|
||||
}
|
||||
resolve(message2.data?.token || "");
|
||||
resolve(((_a = message2.data) == null ? void 0 : _a.token) || "");
|
||||
};
|
||||
window.addEventListener("message", listener);
|
||||
const message = { type: EdgeAuthTokenRequest };
|
||||
|
2
pkg/sdk/client/dist/client.js.map
vendored
2
pkg/sdk/client/dist/client.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user