context
This commit is contained in:
parent
b443eebec3
commit
ad53ba82c4
|
@ -97,8 +97,12 @@ export const renderableImageURLs = async function* (castData: CastData) {
|
||||||
haveEligibleFiles = true;
|
haveEligibleFiles = true;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof ApiError && e.httpStatusCode == 401) {
|
if (e instanceof ApiError && e.httpStatusCode == 401) {
|
||||||
// The token has expired. Rethrow the error, which will
|
// The token has expired. This can happen, e.g., if the user
|
||||||
// bring us back to the pairing page.
|
// opens the dialog to cast again, causing the client to
|
||||||
|
// invalidate existing tokens.
|
||||||
|
//
|
||||||
|
// Rethrow the error, which will bring us back to the
|
||||||
|
// pairing page.
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue