webappsec-credential-management: Fix lib.dom error (#27797)

This commit is contained in:
Andy
2018-08-06 17:38:22 -07:00
committed by GitHub
parent a2bd223042
commit 480f7557d2
2 changed files with 5 additions and 2 deletions

View File

@@ -25,6 +25,9 @@ interface GlobalFetch {
// variant for navigator.credentials monkey patching
fetch(url: Request|string, init?: CMRequestInit): Promise<Response>;
}
interface WindowOrWorkerGlobalScope {
fetch(url: Request|string, init?: CMRequestInit): Promise<Response>;
}
/**
* Variant of TS 2.2 {@link RequestInit} that permits a

View File

@@ -214,7 +214,7 @@ function signOutDeprecated() {
}
navigator.credentials.requireUserMediation().then(() => {
document.location.assign('/');
document.location!.assign('/');
});
}
@@ -224,7 +224,7 @@ function signOut() {
}
navigator.credentials.preventSilentAccess().then(() => {
document.location.assign('/');
document.location!.assign('/');
});
}