feat(sdk,client): target es2015 for old chromecast compatibility
arcad/edge/pipeline/head This commit looks good
Details
arcad/edge/pipeline/head This commit looks good
Details
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 \
|
pkg/sdk/client/src/index.ts \
|
||||||
--bundle \
|
--bundle \
|
||||||
--sourcemap \
|
--sourcemap \
|
||||||
--target=es2020 \
|
--target=es2015 \
|
||||||
--format=iife \
|
--format=iife \
|
||||||
--global-name=Edge \
|
--global-name=Edge \
|
||||||
--define:global=window \
|
--define:global=window \
|
||||||
|
|
|
@ -3960,6 +3960,7 @@ var Edge = (() => {
|
||||||
reject(new Error("Edge auth token request timed out !"));
|
reject(new Error("Edge auth token request timed out !"));
|
||||||
}, timeout);
|
}, timeout);
|
||||||
const listener = (evt) => {
|
const listener = (evt) => {
|
||||||
|
var _a;
|
||||||
const message2 = evt.data;
|
const message2 = evt.data;
|
||||||
if (!message2 || !message2.type || !message2.data) {
|
if (!message2 || !message2.type || !message2.data) {
|
||||||
return;
|
return;
|
||||||
|
@ -3975,7 +3976,7 @@ var Edge = (() => {
|
||||||
reject("Unexpected auth token request response !");
|
reject("Unexpected auth token request response !");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
resolve(message2.data?.token || "");
|
resolve(((_a = message2.data) == null ? void 0 : _a.token) || "");
|
||||||
};
|
};
|
||||||
window.addEventListener("message", listener);
|
window.addEventListener("message", listener);
|
||||||
const message = { type: EdgeAuthTokenRequest };
|
const message = { type: EdgeAuthTokenRequest };
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue